Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always emit the sid claim in id tokens #1157

Merged
merged 1 commit into from
Feb 2, 2023

Conversation

josephdecock
Copy link
Member

@josephdecock josephdecock commented Feb 2, 2023

In the past, we only needed the sid claim in the check session endpoint, and only included the sid claim when that endpoint was enabled. Now we have more cases where the sid claim is useful, so we are no longer going to make the sid claim conditional on the EnableCheckSessionEndpoint option

In the past, we only needed the sid claim in the check session
endpoint, and only included the sid claim when that endpoint was enabled
check session. Now we have more cases where the sid claim is useful, so
we are no longer going to make the sid claim conditional on the
EnableCheckSessionEndpoint option
@josephdecock josephdecock linked an issue Feb 2, 2023 that may be closed by this pull request
}
else
{
request.SessionId = ""; // empty string for anonymous users
LogError("SessionId is missing", request);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is normally possible to not have a session id, so I think logging this as an error and then continuing is reasonable.

@brockallen brockallen merged commit 84bc142 into releases/6.2.x Feb 2, 2023
@brockallen brockallen deleted the joe/always-emit-sid-claim branch February 2, 2023 17:17
brockallen added a commit that referenced this pull request Feb 2, 2023
@brockallen brockallen added this to the 6.2.3 milestone Feb 2, 2023
@brockallen brockallen added the bug Something isn't working label Feb 2, 2023
brockallen added a commit that referenced this pull request Feb 2, 2023
Merge pull request #1157 from DuendeSoftware/joe/always-emit-sid-claim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Session Id claim is missing from identity token
2 participants