-
Notifications
You must be signed in to change notification settings - Fork 643
Treat a missing aud claim as an empty list #3542
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The rust and C# changes look correct to me, I'm not as familiar with TypeScript but Jeff says that he has already tested it. Given this I'm fine to approve 👍
(I have not tested any of this myself)
cloutiertyler
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes look good to me.
# Description of Changes This adds some code samples for using auth claims in Rust, Typescript, and C#. Much of this was originally in #3218. # API and ABI breaking changes <!-- If this is an API or ABI breaking change, please apply the corresponding GitHub label. --> # Expected complexity level and risk 1: this is a docs-only change. # Testing I've tested these code samples locally (with the changes in #3542). --------- Signed-off-by: Jeffrey Dallatezza <jeffreydallatezza@gmail.com> Co-authored-by: John Detter <4099508+jdetter@users.noreply.github.com> Co-authored-by: Tyler Cloutier <cloutiertyler@users.noreply.github.com>
Description of Changes
The
audclaim is required in the OIDC spec, but the server currently allows it to be missing, and the spacetime auth tokens we use for the website don't have an audience.Previously the module bindings would throw an error if there were no
audclaim in a jwt payload (if someone used theaudiencewithin a reducer), but this change makes us treat a missing audience as an empty list.This also renames the
authCtxfields tosenderAuthin the typescript and csharp module APIs, so they match rust.API and ABI breaking changes
This doesn't break any ABIs.
This changes the ReducerContext APIs in typescript and rust, but only by renaming a field that hasn't been released yet.
Expected complexity level and risk
Testing
I've tested accessing the
audiencewithin a reducer for a token missing anaudclaim in Typescript and Rust.