Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
encyclopedia-gui
Commits
fd011554
Commit
fd011554
authored
Apr 16, 2018
by
Iker Hurtado
Browse files
Guest user token change
parent
537548a7
Pipeline
#27332
passed with stages
in 6 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
client/bundle-es5.js
View file @
fd011554
This diff is collapsed.
Click to expand it.
client/bundle.js
View file @
fd011554
...
...
@@ -440,8 +440,13 @@
document
.
querySelector
(
'
#guest-user a
'
).
href
=
API_BASE_URL
+
'
saml/?sso2
'
;
const
AUTH_REQUEST_HEADER_GUEST_USER
=
'
Basic
'
+
btoa
(
'
eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey
'
+
'
JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:
'
);
//btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey'+
//'JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:');
btoa
(
'
eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey
'
+
'
JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:
'
);
//eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.eyJpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs
// Mockup URLs
...
...
client/index.html
View file @
fd011554
...
...
@@ -118,6 +118,6 @@
</div>
<!-- <script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script>-->
<script
type=
"text/javascript"
src=
"bundle.js"
charset=
"utf-8"
></script>
<script
type=
"text/javascript"
src=
"bundle
-es5
.js"
charset=
"utf-8"
></script>
</body>
</html>
client/src/common/util.js
View file @
fd011554
...
...
@@ -29,8 +29,13 @@ const API_BASE_URL= API_HOST+'v1.0/';
document
.
querySelector
(
'
#guest-user a
'
).
href
=
API_BASE_URL
+
'
saml/?sso2
'
;
const
AUTH_REQUEST_HEADER_GUEST_USER
=
'
Basic
'
+
btoa
(
'
eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey
'
+
'
JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:
'
);
//btoa('eyJhbGciOiJIUzI1NiIsImlhdCI6MTQ5MjA3MDI5MCwiZXhwIjoxNTIzNjI3ODkwfQ.ey'+
//'JpZCI6ImVuY2d1aSJ9.oXYwGrLHRxdvKRal1NaAJJ5tCVTDupB5SjAGTtJVDKU:');
btoa
(
'
eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.ey
'
+
'
JpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs:
'
);
//eyJhbGciOiJIUzI1NiIsImV4cCI6MTUyMzk2MTM5MSwiaWF0IjoxNTIzODc0OTkxfQ.eyJpZCI6ImdodWhzIn0.9jYbcdOpjT9vWqvqE1Xm1p1vrjpQRKKEzuKGXx6orEs
// Mockup URLs
...
...
Write
Preview
Supports
Markdown
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