Repository navigation
Is it possible to create access token from as an authenticated user #14867
Unanswered
etienneroudeix
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I would like to allow a user to create an access token that he can use in his automated process withtout having to renew it too regularly (monthly/yearly basis).
I'am more comfortable describing this with a schema :
sequenceDiagram participant User participant User App participant My App participant My Keycloak rect rgb(220, 220, 220) note right of User: Existing basic auth User->>My App: Authenticate My App->>My Keycloak: Authenticate My Keycloak-->>My App: JWT (5 min ttl) My App-->>User: JWT (5 min ttl) end rect rgb(220, 220, 200) note right of User: What I want to implement User->>My App: Create permanent access token (+ JWT) My App->>My Keycloak: Validate JWT My Keycloak-->>My App: OK My App->>My Keycloak: ??? My Keycloak-->>My App: Access token (6 monthes ttl) My App-->>User: Access token (6 monthes ttl) end rect rgb(220, 220, 240) note right of User App: What I want to achieve User App->>My App: Do some regular automated work (+ Access token) My App->>My Keycloak: Validate Access token My Keycloak-->>My App: OK My App-->>User App: OK endIs it something possible through Keycloak ?
Researches are actually a bit confusing since "access token" is an omnipresent expression in authentication world.
All reactions