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

Resources with [AllowAnonymous] may trigger request to the IDP #5

Open
ckuetbach opened this issue Apr 16, 2020 · 1 comment
Open

Comments

@ckuetbach
Copy link
Member

Resources with [AllowAnonymous] may trigger request to the IDP

d-velop/dvelop-app-template-cs#51

@ckuetbach
Copy link
Member Author

Seems as if a asp dotnet core middleware cannot get the ActionDescriptor in dotnet core 2.1

In dotnet 3.1 it can be accessed from the HttpContext

Endpoint endpoint = context.GetEndpoint();
AllowAnonymousAttribute anon = endpoint.Metadata.GetMetadata<AllowAnonymousAttribute>();
if(anon != null) --> ignore IDP

May be there is another Solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant