Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
id
go-sso
Commits
d602e3ad
Commit
d602e3ad
authored
Feb 18, 2018
by
ale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the right URL for /sso_logout in the logout JS code
parent
c49e8adf
Pipeline
#918
passed with stages
in 1 minute and 8 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
server/bindata.go
server/bindata.go
+4
-5
server/static/js/logout.js
server/static/js/logout.js
+1
-2
server/templates/page.html
server/templates/page.html
+1
-1
No files found.
server/bindata.go
View file @
d602e3ad
...
...
@@ -202,11 +202,10 @@ idlogout.get_services = function() {
};
idlogout.logout_service = function(idx, service) {
var logout_url = service.url + 'sso_logout';
console.log('logging out of ' + service.name);
$.ajax({
type: 'GET',
url:
logout_
url,
url:
service.
url,
contentType: 'text/plain',
xhrFields: {
withCredentials: true
...
...
@@ -245,7 +244,7 @@ func staticJsLogoutJs() (*asset, error) {
return
nil
,
err
}
info
:=
bindataFileInfo
{
name
:
"static/js/logout.js"
,
size
:
105
3
,
mode
:
os
.
FileMode
(
436
),
modTime
:
time
.
Unix
(
151896
3941
,
0
)}
info
:=
bindataFileInfo
{
name
:
"static/js/logout.js"
,
size
:
10
0
5
,
mode
:
os
.
FileMode
(
436
),
modTime
:
time
.
Unix
(
151896
4676
,
0
)}
a
:=
&
asset
{
bytes
:
bytes
,
info
:
info
}
return
a
,
nil
}
...
...
@@ -1351,7 +1350,7 @@ var _templatesPageHtml = []byte(`{{define "header"}}<!DOCTYPE html>
<script type="text/javascript" src="/static/js/u2f.js" integrity="sha384-vd6lytRvVm189G5gr34wlOvN672vVBceTZqV+lTSeec0DBLc0GlWLyKDHc6mrIZS"></script>
{{end}}
{{if .IncludeLogoutScripts}}
<script type="text/javascript" src="/static/js/logout.js" integrity="sha384-l
FECzouyNyktRdo1mjFpvlIWeKfD3FMASOF5o3AnPqFY1Bmiwpx7qfTSLCmNL8Aj
"></script>
<script type="text/javascript" src="/static/js/logout.js" integrity="sha384-l
ChVngGLNFXetIJTSxc+scDpi1vsBL+7Xa4r2uZpQFP/6Y2z9eCDXe/Y4IUdklRD
"></script>
{{end}}
</body>
</html>
...
...
@@ -1368,7 +1367,7 @@ func templatesPageHtml() (*asset, error) {
return
nil
,
err
}
info
:=
bindataFileInfo
{
name
:
"templates/page.html"
,
size
:
1686
,
mode
:
os
.
FileMode
(
436
),
modTime
:
time
.
Unix
(
151896
39
80
,
0
)}
info
:=
bindataFileInfo
{
name
:
"templates/page.html"
,
size
:
1686
,
mode
:
os
.
FileMode
(
436
),
modTime
:
time
.
Unix
(
151896
46
80
,
0
)}
a
:=
&
asset
{
bytes
:
bytes
,
info
:
info
}
return
a
,
nil
}
...
...
server/static/js/logout.js
View file @
d602e3ad
...
...
@@ -5,11 +5,10 @@ idlogout.get_services = function() {
};
idlogout
.
logout_service
=
function
(
idx
,
service
)
{
var
logout_url
=
service
.
url
+
'
sso_logout
'
;
console
.
log
(
'
logging out of
'
+
service
.
name
);
$
.
ajax
({
type
:
'
GET
'
,
url
:
logout_
url
,
url
:
service
.
url
,
contentType
:
'
text/plain
'
,
xhrFields
:
{
withCredentials
:
true
...
...
server/templates/page.html
View file @
d602e3ad
...
...
@@ -24,7 +24,7 @@
<script
type=
"text/javascript"
src=
"/static/js/u2f.js"
integrity=
"sha384-vd6lytRvVm189G5gr34wlOvN672vVBceTZqV+lTSeec0DBLc0GlWLyKDHc6mrIZS"
></script>
{{end}}
{{if .IncludeLogoutScripts}}
<script
type=
"text/javascript"
src=
"/static/js/logout.js"
integrity=
"sha384-l
FECzouyNyktRdo1mjFpvlIWeKfD3FMASOF5o3AnPqFY1Bmiwpx7qfTSLCmNL8Aj
"
></script>
<script
type=
"text/javascript"
src=
"/static/js/logout.js"
integrity=
"sha384-l
ChVngGLNFXetIJTSxc+scDpi1vsBL+7Xa4r2uZpQFP/6Y2z9eCDXe/Y4IUdklRD
"
></script>
{{end}}
</body>
</html>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment