Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
b004c160
Commit
b004c160
authored
1 year ago
by
Reinder Kraaij
Browse files
Options
Downloads
Plain Diff
Merge branch '
TMSS-2900
-Front-End-Only-Fix-Keycloak' into 'master'
fix typo Closes
TMSS-2900
See merge request
!1300
parents
8f081617
a1cd93d0
No related branches found
No related tags found
1 merge request
!1300
fix typo
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js
+3
-3
3 additions, 3 deletions
SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js
with
3 additions
and
3 deletions
SAS/TMSS/frontend/tmss_webapp/src/authenticate/auth.js
+
3
−
3
View file @
b004c160
...
...
@@ -20,7 +20,7 @@ const Auth = {
const
loginType
=
localStorage
.
getItem
(
"
loginType
"
);
if
(
Auth
.
isDebugLoggin
)
console
.
log
(
"
\\
validateExistingToken:
"
,
user
)
if
(
Auth
.
isDebugLoggin
)
console
.
log
(
"
\\
validateExistingToken:
"
,
user
,
loginType
)
// Check if token validation is already in progress
if
(
Auth
.
isTokenCheckInProgress
)
{
...
...
@@ -43,7 +43,7 @@ const Auth = {
return
true
}
}
if
(
loginType
===
"
Key
C
loak
"
)
{
if
(
loginType
===
"
Key
c
loak
"
)
{
if
(
Auth
.
isDebugLoggin
)
console
.
log
(
"
- validateExistingToken: Checking for KeyCloak State
"
,
user
?.
token
)
const
currentAuthenticationState
=
await
AuthService
.
getKeycloakAuthState
();
if
(
currentAuthenticationState
?.
is_authenticated
)
{
...
...
@@ -61,7 +61,7 @@ const Auth = {
return
true
}
}
if
(
Auth
.
isDebugLoggin
)
console
.
log
(
"
/
/
validateExistingToken: Failed to Validate Token
"
)
if
(
Auth
.
isDebugLoggin
)
console
.
log
(
"
/ validateExistingToken: Failed to Validate Token
"
)
Auth
.
isTokenCheckInProgress
=
false
Auth
.
prevalidatedToken
=
"
abcd-abcd
"
return
false
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment