Add [AllowAnonymous] on create tenant not working
See original GitHub issueDescribe the bug Its possible to create tenant without doing any authentication?
To Reproduce
Steps to reproduce the behavior:
Change [MustHavePermission(RootPermissions.Tenants.Create)]
to [AllowAnonymous]
on TenantController -> CreateAsync, still return unauthorized
Expected behavior Create tenant without perform any authentication
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
AllowAnonymous is not working with azure ad authentication
If you want to allow the anonymous request, you can implement the authentication using OWIN component instead of using the Easy Auth.
Read more >Anonymous Aware Middleware with Endpoint Routing and ...
In this post, I want to describe an approach to allow anonymous access to a health check endpoint, added using the MapHealthChecks extension ......
Read more >Blazor Server- AD B2C - Public, User and Admin sections ...
To do b2c, VERY basic roll authorization, create a custom user attribute field on your B2C tenant (ex. isAdmin) and return it on...
Read more >Secure the Application
To allow anonymous users access to the visual application's data stored in business objects, enable role-based security in the business object's Security tab...
Read more >Web API controller hosted in Azure not respecting ...
Normally that's rather simple, you would just add the [AllowAnonymous] attribute to the controller (or specific action) and voila; ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
As per the design, only the Root Admin of the application has access to create new tenants. This comes as a part of Tenant Management. I believe this will be a secure way to manage tenants in enterprise applications.
Confirm, many thanks @iammukeshm