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
86548498
Commit
86548498
authored
Jul 25, 2019
by
Chris Hines
Browse files
narrowing down the problem
parent
536b2269
Pipeline
#7539
passed with stages
in 2 minutes and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/authorisation.service.ts
View file @
86548498
...
...
@@ -135,6 +135,7 @@ export class AuthorisationService {
storeToken
(
frag
:
string
)
{
console
.
log
(
'
storing the token fragment
'
);
if
(
frag
===
undefined
||
frag
==
null
)
{
console
.
log
(
'
framgned not defined, not storing
'
);
return
;
}
let
tokenmatch
=
null
;
...
...
@@ -154,6 +155,9 @@ export class AuthorisationService {
//Verify that the state matched the nonce we used when initiating login
let
tuple
=
JSON
.
parse
(
localStorage
.
getItem
(
'
authservice
'
));
if
(
tuple
==
null
)
{
console
.
log
(
'
token found, but no authService defined
'
);
let
data
=
localStorage
.
getItem
(
'
authservice
'
);
console
.
log
(
data
);
return
}
if
(
tuple
[
1
]
!=
state
)
{
...
...
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