Skip to content

Make OIDC handler skip unrecognized requests #10060

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

Merged

Conversation

mderriey
Copy link
Contributor

@mderriey mderriey commented May 7, 2019

  • Honor the SkipUnrecognizedRequests property by skipping them, as they currently throw

Addresses #10028

mderriey added 2 commits May 8, 2019 09:20
We need this because during the MessageReceived event, the null AuthenticationProperties created from the non-existent OIDC message are swapped with a new instance when we new up the MessageReceivedContext.
@mderriey
Copy link
Contributor Author

mderriey commented May 7, 2019

I couldn't find tests against the OIDC handler for the Authenticate flow to make sure that this is not breaking existing behavior.

@Eilon Eilon added the area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer label May 7, 2019
@Tratcher
Copy link
Member

Tratcher commented May 8, 2019

OIDC has some significant test gaps. #4681

@Tratcher Tratcher self-assigned this May 8, 2019
@analogrelay
Copy link
Contributor

@aspnet-hello
Copy link

@Tratcher Tratcher merged commit a677fd2 into dotnet:master May 9, 2019
@Tratcher
Copy link
Member

Tratcher commented May 9, 2019

Thanks

@Tratcher Tratcher added this to the 3.0.0-preview6 milestone May 9, 2019
@mderriey mderriey deleted the 10028-oidc-handler-throws-on-callback-path branch May 9, 2019 05:48
@mderriey
Copy link
Contributor Author

mderriey commented May 9, 2019

Thank you, much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-auth Includes: Authn, Authz, OAuth, OIDC, Bearer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants