Search in sources :

Example 1 with DocAppCallbackHandler

use of uk.gov.di.authentication.app.lambda.DocAppCallbackHandler in project di-authentication-api by alphagov.

the class DocAppCallbackHandlerIntegrationTest method setup.

@BeforeEach
void setup() throws JOSEException {
    criStub.init(privateKey);
    handler = new DocAppCallbackHandler(configurationService);
    docAppSubjectId = new Subject(ClientSubjectHelper.calculatePairwiseIdentifier(new Subject().getValue(), "https://test.com", SaltHelper.generateNewSalt()));
    clientStore.registerClient(CLIENT_ID, "test-client", singletonList(REDIRECT_URI), singletonList("contact@example.com"), singletonList("openid"), null, singletonList("http://localhost/post-redirect-logout"), "http://example.com", String.valueOf(ServiceType.MANDATORY), "https://test.com", "pairwise", true, ClientType.APP);
}
Also used : DocAppCallbackHandler(uk.gov.di.authentication.app.lambda.DocAppCallbackHandler) Subject(com.nimbusds.oauth2.sdk.id.Subject) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

Subject (com.nimbusds.oauth2.sdk.id.Subject)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 DocAppCallbackHandler (uk.gov.di.authentication.app.lambda.DocAppCallbackHandler)1