Search in sources :

Example 1 with AuthorizationCodeVerifier

use of com.nexblocks.authguard.jwt.oauth.AuthorizationCodeVerifier in project AuthGuard by AuthGuard.

the class AuthorizationCodeToOidcTest method setup.

@BeforeEach
void setup() {
    authorizationCodeVerifier = Mockito.mock(AuthorizationCodeVerifier.class);
    accountsService = Mockito.mock(AccountsService.class);
    openIdConnectTokenProvider = Mockito.mock(OpenIdConnectTokenProvider.class);
    serviceMapper = new ServiceMapperImpl();
    authorizationCodeToOidc = new AuthorizationCodeToOidc(new AccountsServiceAdapter(accountsService), authorizationCodeVerifier, openIdConnectTokenProvider, serviceMapper);
}
Also used : ServiceMapperImpl(com.nexblocks.authguard.service.mappers.ServiceMapperImpl) AccountsService(com.nexblocks.authguard.service.AccountsService) AuthorizationCodeVerifier(com.nexblocks.authguard.jwt.oauth.AuthorizationCodeVerifier) OpenIdConnectTokenProvider(com.nexblocks.authguard.jwt.OpenIdConnectTokenProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

OpenIdConnectTokenProvider (com.nexblocks.authguard.jwt.OpenIdConnectTokenProvider)1 AuthorizationCodeVerifier (com.nexblocks.authguard.jwt.oauth.AuthorizationCodeVerifier)1 AccountsService (com.nexblocks.authguard.service.AccountsService)1 ServiceMapperImpl (com.nexblocks.authguard.service.mappers.ServiceMapperImpl)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1