Live Chat Icon For mobile
Live Chat Icon

How can I allow only authorized user to access gRPC service?

Platform: Blazor| Category: General

The Authorize([Authorize]) attribute is used to allow only authorized user to access the service.

[Authorize]
public class ExampleService
{
    
}

Please refer to the documentation for more details: https://docs.microsoft.com/en-us/aspnet/core/grpc/authn-and-authz?view=aspnetcore-3.1#authorize-users-to-access-services-and-service-methods

Share with

Share on twitter
Share on facebook
Share on linkedin

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.