Search in sources :

Example 1 with ClientSyncService

use of io.gravitee.am.gateway.handler.common.client.ClientSyncService in project gravitee-access-management by gravitee-io.

the class ClientAuthHandlerTest method setUp.

@Override
public void setUp() throws Exception {
    super.setUp();
    router.post("/oauth/token").handler(ClientAuthHandler.create(clientSyncService, clientAssertionService, jwkService, domain, null)).handler(rc -> rc.response().setStatusCode(200).end()).failureHandler(new ExceptionHandler());
}
Also used : ClientAuthenticationMethod(io.gravitee.am.common.oidc.ClientAuthenticationMethod) Client(io.gravitee.am.model.oidc.Client) Mock(org.mockito.Mock) ArgumentMatchers.eq(org.mockito.ArgumentMatchers.eq) Maybe(io.reactivex.Maybe) RunWith(org.junit.runner.RunWith) Domain(io.gravitee.am.model.Domain) Test(org.junit.Test) Mockito.when(org.mockito.Mockito.when) HttpStatusCode(io.gravitee.common.http.HttpStatusCode) ClientAssertionService(io.gravitee.am.gateway.handler.oauth2.service.assertion.ClientAssertionService) HttpMethod(io.vertx.core.http.HttpMethod) ExceptionHandler(io.gravitee.am.gateway.handler.oauth2.resources.handler.ExceptionHandler) RxWebTestBase(io.gravitee.am.gateway.handler.common.vertx.RxWebTestBase) ClientSyncService(io.gravitee.am.gateway.handler.common.client.ClientSyncService) JWKService(io.gravitee.am.gateway.handler.oidc.service.jwk.JWKService) MockitoJUnitRunner(org.mockito.junit.MockitoJUnitRunner) ArgumentMatchers.anyString(org.mockito.ArgumentMatchers.anyString) Mockito.mock(org.mockito.Mockito.mock) ExceptionHandler(io.gravitee.am.gateway.handler.oauth2.resources.handler.ExceptionHandler)

Aggregations

ClientAuthenticationMethod (io.gravitee.am.common.oidc.ClientAuthenticationMethod)1 ClientSyncService (io.gravitee.am.gateway.handler.common.client.ClientSyncService)1 RxWebTestBase (io.gravitee.am.gateway.handler.common.vertx.RxWebTestBase)1 ExceptionHandler (io.gravitee.am.gateway.handler.oauth2.resources.handler.ExceptionHandler)1 ClientAssertionService (io.gravitee.am.gateway.handler.oauth2.service.assertion.ClientAssertionService)1 JWKService (io.gravitee.am.gateway.handler.oidc.service.jwk.JWKService)1 Domain (io.gravitee.am.model.Domain)1 Client (io.gravitee.am.model.oidc.Client)1 HttpStatusCode (io.gravitee.common.http.HttpStatusCode)1 Maybe (io.reactivex.Maybe)1 HttpMethod (io.vertx.core.http.HttpMethod)1 Test (org.junit.Test)1 RunWith (org.junit.runner.RunWith)1 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)1 ArgumentMatchers.eq (org.mockito.ArgumentMatchers.eq)1 Mock (org.mockito.Mock)1 Mockito.mock (org.mockito.Mockito.mock)1 Mockito.when (org.mockito.Mockito.when)1 MockitoJUnitRunner (org.mockito.junit.MockitoJUnitRunner)1