Search in sources :

Example 1 with AuthorizationCodeService

use of io.gravitee.am.gateway.handler.oauth2.service.code.AuthorizationCodeService in project gravitee-access-management by gravitee-io.

the class CompositeTokenGranter method afterPropertiesSet.

@Override
public void afterPropertiesSet() {
    this.tokenRequestResolver.setScopeManager(this.scopeManager);
    addTokenGranter(GrantType.CLIENT_CREDENTIALS, new ClientCredentialsTokenGranter(tokenRequestResolver, tokenService));
    addTokenGranter(GrantType.PASSWORD, new ResourceOwnerPasswordCredentialsTokenGranter(tokenRequestResolver, tokenService, userAuthenticationManager));
    addTokenGranter(GrantType.AUTHORIZATION_CODE, new AuthorizationCodeTokenGranter(tokenRequestResolver, tokenService, authorizationCodeService, userAuthenticationManager, authenticationFlowContextService, environment));
    addTokenGranter(GrantType.REFRESH_TOKEN, new RefreshTokenGranter(tokenRequestResolver, tokenService, userAuthenticationManager));
    addTokenGranter(GrantType.UMA, new UMATokenGranter(tokenService, userAuthenticationManager, permissionTicketService, resourceService, jwtService, domain, rulesEngine, executionContextFactory));
    addTokenGranter(GrantType.CIBA_GRANT_TYPE, new CibaTokenGranter(tokenRequestResolver, tokenService, userAuthenticationManager, authenticationRequestService, domain));
}
Also used : UMATokenGranter(io.gravitee.am.gateway.handler.oauth2.service.granter.uma.UMATokenGranter) ResourceOwnerPasswordCredentialsTokenGranter(io.gravitee.am.gateway.handler.oauth2.service.granter.password.ResourceOwnerPasswordCredentialsTokenGranter) AuthorizationCodeTokenGranter(io.gravitee.am.gateway.handler.oauth2.service.granter.code.AuthorizationCodeTokenGranter) CibaTokenGranter(io.gravitee.am.gateway.handler.oauth2.service.granter.ciba.CibaTokenGranter) ClientCredentialsTokenGranter(io.gravitee.am.gateway.handler.oauth2.service.granter.client.ClientCredentialsTokenGranter) RefreshTokenGranter(io.gravitee.am.gateway.handler.oauth2.service.granter.refresh.RefreshTokenGranter)

Aggregations

CibaTokenGranter (io.gravitee.am.gateway.handler.oauth2.service.granter.ciba.CibaTokenGranter)1 ClientCredentialsTokenGranter (io.gravitee.am.gateway.handler.oauth2.service.granter.client.ClientCredentialsTokenGranter)1 AuthorizationCodeTokenGranter (io.gravitee.am.gateway.handler.oauth2.service.granter.code.AuthorizationCodeTokenGranter)1 ResourceOwnerPasswordCredentialsTokenGranter (io.gravitee.am.gateway.handler.oauth2.service.granter.password.ResourceOwnerPasswordCredentialsTokenGranter)1 RefreshTokenGranter (io.gravitee.am.gateway.handler.oauth2.service.granter.refresh.RefreshTokenGranter)1 UMATokenGranter (io.gravitee.am.gateway.handler.oauth2.service.granter.uma.UMATokenGranter)1