Skip to content

Adds authorization to the builder#1

Open
tpberntsen wants to merge 1 commit intoScriptBytes:mainfrom
tpberntsen:main
Open

Adds authorization to the builder#1
tpberntsen wants to merge 1 commit intoScriptBytes:mainfrom
tpberntsen:main

Conversation

@tpberntsen
Copy link

Hi there,

Thanks for the excellent video and repo.

On .NET 9, I had to add builder.Services.AddAuthorization(); to not have the compiler complain that:

System.InvalidOperationException: Unable to find the required services. 
Please add all the required services by calling 'IServiceCollection.AddAuthorization' in the application startup code.

Cheers!

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

Successfully merging this pull request may close these issues.

1 participant