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

Possible to bypass Permission requirements for accessing an API endpoint? #867

Open
rcholic opened this issue Jun 17, 2023 · 2 comments
Open

Comments

@rcholic
Copy link

rcholic commented Jun 17, 2023

** Problem: I am trying to create an API endpoint without requiring permissions to access. I created a controller with a method that does not have the MustHavePermission attribute, but it still requires access token when sending API request.

** Proposed Solution: If a method does not have MustHavePermission attribute, the method should be available for public access without access token

@dsolteszopyn
Copy link

dsolteszopyn commented Jun 17, 2023 via email

@zrediet
Copy link

zrediet commented Sep 2, 2023

@dsolteszopyn answered it. Decorate your Controller with [AllowAnonymous] attribute! This should work

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

3 participants