Skip to content

ID Token missing sid claim after refresh_token grant #1224

Closed
@IwantDomore

Description

@IwantDomore

Describe the bug

After using the refresh token, the obtained id_token does not contain the claim of sid, because there is no sid field, I failed to log out, because the sid field was verified in the logout logic

To Reproduce

1.Get authorization code

I use the /oauth2/authorize authorization endpoint in the browser to get the code

1

2.Obtain token using authorization code

2

3.Parse the id_token and find that the id_token obtained using the authorization code mode contains the claim sid

3

4.Use refresh_token to reacquire token

4

5.Parse the id_token again and find that there is no sid field

5

6.The id_token needs to be used when logging out, but the id_token parsed in the background does not contain the sid claim and an error is reported

58502e9ac5e53ed5cd9a83d2b470b89

Expected behavior
1.Through the general browsing code, it is found that in the token obtained in the authorization code mode, the sid will be added to the claim when it is judged that the seesionInfomation exists, but the sid is not added when the token is constructed using the refresh token mode.

2.Hope the author can check and solve my difficulty, thank you very much.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions