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
hpc-team
strudelv2_spa
Commits
90f314bf
Commit
90f314bf
authored
Jul 25, 2019
by
Chris Hines
Browse files
still having login problems
parent
86548498
Pipeline
#7540
passed with stages
in 2 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/authorisation.service.ts
View file @
90f314bf
...
@@ -312,6 +312,8 @@ public getKeys(id?: Identity) {
...
@@ -312,6 +312,8 @@ public getKeys(id?: Identity) {
let
nonce
=
Math
.
random
().
toString
(
36
).
substring
(
2
,
15
)
let
nonce
=
Math
.
random
().
toString
(
36
).
substring
(
2
,
15
)
localStorage
.
setItem
(
'
authservice
'
,
JSON
.
stringify
([
authservice
,
nonce
]));
localStorage
.
setItem
(
'
authservice
'
,
JSON
.
stringify
([
authservice
,
nonce
]));
console
.
log
(
'
stored the authservice in localStorage
'
);
console
.
log
(
localStorage
.
getItem
(
'
authservice
'
));
localStorage
.
setItem
(
'
path
'
,
this
.
location
.
path
());
localStorage
.
setItem
(
'
path
'
,
this
.
location
.
path
());
if
(
authservice
.
scope
==
null
)
{
if
(
authservice
.
scope
==
null
)
{
window
.
location
.
assign
(
authservice
.
authorise
+
"
?response_type=token&redirect_uri=
"
+
redirect_uri
+
"
&state=
"
+
nonce
+
"
&client_id=
"
+
authservice
.
client_id
);
window
.
location
.
assign
(
authservice
.
authorise
+
"
?response_type=token&redirect_uri=
"
+
redirect_uri
+
"
&state=
"
+
nonce
+
"
&client_id=
"
+
authservice
.
client_id
);
...
...
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