Search in sources :

Example 1 with OpenIdConnectTokenProvider

use of com.nexblocks.authguard.jwt.OpenIdConnectTokenProvider 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)

Example 2 with OpenIdConnectTokenProvider

use of com.nexblocks.authguard.jwt.OpenIdConnectTokenProvider in project AuthGuard by AuthGuard.

the class BasicToOIdCTest method setup.

@BeforeEach
void setup() {
    basicAuth = Mockito.mock(BasicAuthProvider.class);
    accessTokenProvider = Mockito.mock(AccessTokenProvider.class);
    idTokenProvider = Mockito.mock(IdTokenProvider.class);
    openIdConnectTokenProvider = new OpenIdConnectTokenProvider(accessTokenProvider, idTokenProvider);
    basicToOIdC = new BasicToOIdC(basicAuth, openIdConnectTokenProvider);
}
Also used : BasicAuthProvider(com.nexblocks.authguard.basic.BasicAuthProvider) IdTokenProvider(com.nexblocks.authguard.jwt.IdTokenProvider) AccessTokenProvider(com.nexblocks.authguard.jwt.AccessTokenProvider) OpenIdConnectTokenProvider(com.nexblocks.authguard.jwt.OpenIdConnectTokenProvider) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

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