Skip to content

500 Error on Refresh Token Request in Device Code Flow When Using openid Scope #2037

Open
@VedantPinggy

Description

@VedantPinggy

Describe the bug

When using the Device Code flow with the openid scope, a 500 Internal Server Error occurs during the refresh token step. This happens because the Device Code flow does not issue an ID token, but the presence of the openid scope leads the server to incorrectly expect one during the refresh.

To Reproduce

Start the Device Code flow with the openid scope included.

Complete user authorization and receive the initial token response.

Attempt to use the refresh token to get new tokens.

Expected behavior

The token endpoint should handle the refresh request correctly, even if no ID token was issued in the original Device Code flow. Including the openid scope should not lead to a server error if an ID token was never provided.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions