Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove old detection of lightweight access token #38089

@mposolda

Description

@mposolda

Description

This is follow-up to #38080 .

In Keycloak 27, we can hopefully remove the "old condition" for the lightweight access token and keep just the detection based on the token context. As the old was needed just for the backwards compatibility. So probably some change like this could be done:

+ if (isAccessTokenLightweight) {
- if (isAccessTokenLightweight || accessToken.getSubject() == null || (accessToken.getSessionId() == null && accessToken.getResourceAccess().isEmpty() && accessToken.getRealmAccess() == null)) {

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions