Class IamAuthorizer
- java.lang.Object
-
- org.curioswitch.common.server.framework.auth.iam.IamAuthorizer
-
- All Implemented Interfaces:
com.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>
public class IamAuthorizer extends java.lang.Object implements com.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>
-
-
Constructor Summary
Constructors Constructor Description IamAuthorizer(IamPermissionChecker checker, com.google.auth.Credentials serverCredentials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletionStage<java.lang.Boolean>
authorize(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.server.auth.OAuth2Token data)
-
-
-
Constructor Detail
-
IamAuthorizer
@Inject public IamAuthorizer(IamPermissionChecker checker, com.google.auth.Credentials serverCredentials)
-
-
Method Detail
-
authorize
public java.util.concurrent.CompletionStage<java.lang.Boolean> authorize(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.server.auth.OAuth2Token data)
- Specified by:
authorize
in interfacecom.linecorp.armeria.server.auth.Authorizer<com.linecorp.armeria.server.auth.OAuth2Token>
-
-