Device Code flow ignores openid
scope
#1472
Labels
status: invalid
An issue that we don't feel is valid
openid
scope
#1472
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
inspring-authorization-server/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/token/JwtGenerator.java
Line 138 in f003d7e
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:
The text was updated successfully, but these errors were encountered: