Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Commits
be33b3cb
Commit
be33b3cb
authored
4 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Remove unused DBPAuthTokenParsed
It was only used in the demo.
parent
0ddadc8f
No related branches found
No related tags found
No related merge requests found
Pipeline
#16275
passed
4 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/auth/src/auth-keycloak.js
+0
-7
0 additions, 7 deletions
packages/auth/src/auth-keycloak.js
packages/auth/src/dbp-auth-demo.js
+1
-1
1 addition, 1 deletion
packages/auth/src/dbp-auth-demo.js
with
1 addition
and
8 deletions
packages/auth/src/auth-keycloak.js
+
0
−
7
View file @
be33b3cb
...
...
@@ -13,7 +13,6 @@ import {AdapterLitElement} from "@dbp-toolkit/provider/src/adapter-lit-element";
* Sets some global variables:
* window.DBPAuthSubject: Keycloak username
* window.DBPAuthToken: Keycloak token to send with your requests
* window.DBPAuthTokenParsed: Keycloak token content
* window.DBPUserFullName: Full name of the user
* window.DBPPersonId: Person identifier of the user
* window.DBPPerson: Person json object of the user (optional, enable by setting the `load-person` attribute)
...
...
@@ -25,7 +24,6 @@ export class AuthKeycloak extends AdapterLitElement {
this
.
forceLogin
=
false
;
this
.
loadPerson
=
false
;
this
.
token
=
""
;
this
.
tokenParsed
=
null
;
this
.
subject
=
""
;
this
.
name
=
""
;
this
.
personId
=
""
;
...
...
@@ -61,7 +59,6 @@ export class AuthKeycloak extends AdapterLitElement {
if
(
kc
.
authenticated
)
{
let
tokenChanged
=
(
this
.
token
!==
kc
.
token
);
this
.
tokenParsed
=
kc
.
tokenParsed
;
this
.
name
=
kc
.
idTokenParsed
.
name
;
this
.
token
=
kc
.
token
;
...
...
@@ -75,7 +72,6 @@ export class AuthKeycloak extends AdapterLitElement {
window
.
DBPAuthSubject
=
this
.
subject
;
window
.
DBPAuthToken
=
this
.
token
;
window
.
DBPAuthTokenParsed
=
this
.
tokenParsed
;
window
.
DBPUserFullName
=
this
.
name
;
window
.
DBPPersonId
=
this
.
personId
;
window
.
DBPPerson
=
this
.
person
;
...
...
@@ -88,14 +84,12 @@ export class AuthKeycloak extends AdapterLitElement {
}
this
.
name
=
""
;
this
.
token
=
""
;
this
.
tokenParsed
=
null
;
this
.
subject
=
""
;
this
.
personId
=
""
;
this
.
person
=
null
;
window
.
DBPAuthSubject
=
this
.
subject
;
window
.
DBPAuthToken
=
this
.
token
;
window
.
DBPAuthTokenParsed
=
this
.
tokenParsed
;
window
.
DBPUserFullName
=
this
.
name
;
window
.
DBPPersonId
=
this
.
personId
;
window
.
DBPPerson
=
this
.
person
;
...
...
@@ -132,7 +126,6 @@ export class AuthKeycloak extends AdapterLitElement {
sendSetPropertyEvents
()
{
this
.
sendSetPropertyEvent
(
'
auth-subject
'
,
this
.
subject
);
this
.
sendSetPropertyEvent
(
'
auth-token
'
,
this
.
token
);
this
.
sendSetPropertyEvent
(
'
auth-token-parsed
'
,
this
.
tokenParsed
);
this
.
sendSetPropertyEvent
(
'
user-full-name
'
,
this
.
name
);
this
.
sendSetPropertyEvent
(
'
person-id
'
,
this
.
personId
);
this
.
sendSetPropertyEvent
(
'
person
'
,
this
.
person
);
...
...
This diff is collapsed.
Click to expand it.
packages/auth/src/dbp-auth-demo.js
+
1
−
1
View file @
be33b3cb
...
...
@@ -63,7 +63,7 @@ class AuthDemo extends ScopedElementsMixin(DBPLitElement) {
return
;
}
console
.
log
(
window
.
DBPAuthToken
Parsed
);
console
.
log
(
window
.
DBPAuthToken
);
}
render
()
{
...
...
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