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

why not set app.UseAuthorization in HostProject( startup.cs) #6602

Closed
bxjg1987 opened this issue Dec 5, 2022 · 2 comments
Closed

why not set app.UseAuthorization in HostProject( startup.cs) #6602

bxjg1987 opened this issue Dec 5, 2022 · 2 comments
Milestone

Comments

@bxjg1987
Copy link

bxjg1987 commented Dec 5, 2022

abp 7.4 template project

in host project, the startup.cs not set " app.UseAuthorization();"
so when in HomeController.Index set
[AbpMvcAuthorize]
will get error 500

The same error will be reported when AbpApiAuthorize is applied to Api.

So why not use app.UseAuthorization(); ?

@ismcagdas ismcagdas added this to the v8.0 milestone Dec 7, 2022
@ismcagdas
Copy link
Member

I don't remember why this is not added but we should add this.

@bxjg1987
Copy link
Author

bxjg1987 commented Dec 7, 2022

ok, thanks~!

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

2 participants