Search in sources :

Example 1 with OAuth20ClientIdAwareProfileManager

use of org.apereo.cas.support.oauth.OAuth20ClientIdAwareProfileManager in project cas by apereo.

the class OAuth20ClientIdAwareProfileManagerTests method init.

@BeforeEach
public void init() {
    val request = new MockHttpServletRequest();
    request.addParameter(OAuth20Constants.CLIENT_ID, CLIENT_ID);
    val response = new MockHttpServletResponse();
    context = new JEEContext(request, response);
    profileManager = new OAuth20ClientIdAwareProfileManager(context, oauthDistributedSessionStore, servicesManager);
}
Also used : lombok.val(lombok.val) MockHttpServletRequest(org.springframework.mock.web.MockHttpServletRequest) JEEContext(org.pac4j.core.context.JEEContext) MockHttpServletResponse(org.springframework.mock.web.MockHttpServletResponse) OAuth20ClientIdAwareProfileManager(org.apereo.cas.support.oauth.OAuth20ClientIdAwareProfileManager) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

lombok.val (lombok.val)1 OAuth20ClientIdAwareProfileManager (org.apereo.cas.support.oauth.OAuth20ClientIdAwareProfileManager)1 BeforeEach (org.junit.jupiter.api.BeforeEach)1 JEEContext (org.pac4j.core.context.JEEContext)1 MockHttpServletRequest (org.springframework.mock.web.MockHttpServletRequest)1 MockHttpServletResponse (org.springframework.mock.web.MockHttpServletResponse)1