Compare View
Commits (2)
Changes
Showing 2 changed files Side-by-side Diff
README.md
src/SsoClientLibrary.php
... | ... | @@ -125,4 +125,14 @@ class SsoClientLibrary { |
125 | 125 | die('Something went wrong, please trace back your action!'); |
126 | 126 | } |
127 | 127 | |
128 | + public function ssoLogout($url_back = '') { | |
129 | + $query = http_build_query([ | |
130 | + 'url_back' => $url_back, | |
131 | + ]); | |
132 | + | |
133 | + $_url = $this->targetUri ."sso/logout?" . $query; | |
134 | + header("Location: " . $_url); | |
135 | + die(); | |
136 | + } | |
137 | + | |
128 | 138 | } |
129 | 139 | \ No newline at end of file |