8000 Supporting reference access/refresh tokens by tnorimat · Pull Request #19824 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Supporting reference access/refresh tokens - #19824

Closed
tnorimat wants to merge 1 commit into
keycloak:mainfrom
Hitachi:ISSUE-19650
Closed

tnorimat wants to merge 1 commit into
keycloak:mainfrom
Hitachi:ISSUE-19650

Conversation

@tnorimat
Copy link
Copy Markdown
Contributor

Closes #19650

@tnorimat
tnorimat requested review from a team as code owners April 20, 2023 05:04
@tnorimat
tnorimat requested a review from a team April 20, 2023 05:04
@tnorimat
tnorimat requested a review from a team as a code owner April 20, 2023 05:04
@tnorimat
tnorimat commented Apr 20, 2023 •
Copy link
Copy Markdown
Contributor Author

Documentation

The PR requires some documentation.

Design

The PR follows the design described in FAPI-SIG's meeting.

Error handling

This executor for a reference type token treats errors in the same way as the current ordinary self-contained type token.

Notice - order of execution

This executor must be executed at the head before execution of other profiles/policies because these existing profiles/executors/policies/conditions treats tokens as a self-contained type token.

Extensibility - the way of converting a self-contained type token and a reference type token

The PR allows users to implement their own way of converting a self-contained type token and a reference type token by implementing a class extending the executor or its abstract class executor.

As a reference implementation, the PR includes the executor that converts a self-contained type token and a reference type token by accessing endpoints of an external token store in REST API manner.

For example, the user can implement the executor that converts a self-contained token and a reference type token by accessing RDB, Redis cache server, and so on.

Extensibility - the way of verifying URLs of an external token store

The executor implements verification method for URLs of an external token store (checking whether the URL starts with http:// or https://). Users can implement their own URL verification logic by implementing a class extending the executor.
For example, a user can implement the verification method that checks whether the URL's domain is one of specified domains.

Extensibility - the way of creating a reference token

The executor implements the method for creating a reference token as "jti" field's value of a self-contained type token. Users can implement their own logic for creating a reference type token by implementing a class extending the executor.

For example, a user can implement the logic that creates a reference type token including time when the token was generated.

@mposolda
Copy link
Copy Markdown
Contributor

Added comment to the discussion #19649

@tnorimat
Copy link
Copy Markdown
Contributor Author

close it because we could take other ways described the issue to do it.

@tnorimat tnorimat closed this Jun 26, 2023
@tnorimat
tnorimat deleted the ISSUE-19650 branch July 24, 2023 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supporting reference access/refresh tokens

2 participants

0