Skip to content

Device Code flow ignores openid scope #1472

Closed
@svrakitin

Description

@svrakitin

Describe the bug

Already discussed here #1116 (comment). Creating a separate issue as it never got traction and now it became a blocker for us to continue adoption.

Device Code flow ignores openid scope, never generates an ID token and doesn't provide it in the token response. This doesn't let headless applications (e.g. desktop applications or CLIs) to authenticate a user and personalize experience.

As a side effect, if refresh token is also present then refresh will fail with NullPointerException in

OidcIdToken currentIdToken = context.getAuthorization().getToken(OidcIdToken.class).getToken();

To Reproduce

Go through device code flow with openid scope.

Expected behavior

Token response for Device Code flow is the same as for Authorization Code flow when given same scopes.

Ideally, any flow which involves a user should support openid scope and provide an ID token in the token response.

See references:

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions