permit some services from custom authentication [need help]
See original GitHub issueI need help with custom authentication
I know we can use metadata and inspectors to support custom authorizations like basic authentication but how we can exclude some services from being authenticated in inspectors.
is there something like @PermitAll
in JAX-RS (jersey framework implementation) which we can use and check the destination endpoint has this annotation or not in provider
?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Custom Authentication and Authorization Framework | KongHQ
The custom authentication service exposes API endpoints to validate the JWT token, check user permissions, etc. The Kong custom plugin will ...
Read more >Custom authentication - AWS IoT Core
AWS IoT Core lets you define custom authorizers so that you can manage your own client authentication and authorization. This is useful when...
Read more >Overview of ASP.NET Core Authentication - Microsoft Learn
In ASP.NET Core, authentication is handled by the authentication service, IAuthenticationService, which is used by authentication middleware.
Read more >c# - Custom authentication scheme invoked after authorization ...
When registering the middleware we want to add some custom roles from our database, so have a custom middleware after authentication but before ......
Read more >Create a Custom External Authentication Provider
Build the matching Apex classes and methods for your chosen metadata types. Then use these classes to implement a custom authentication provider by ......
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
The metadata example does use interceptor together: https://github.com/grpc/grpc-java/tree/master/examples/src/main/java/io/grpc/examples/header
The
HeaderServerInterceptor.java
in the example synthesizes the response headers, whereas your usecase is to inspect the request headers which is easier than the example. For authentication failure, inServerInterceptor.interceptCall()
method you can probably call@MetaiR in the grpc library we don’t have out of box high level tools like
@PermitAll
. Here’s an example using interceptor (with pseudocodneedAuthentication()
,authnPassed()
):