Search in sources :

Example 1 with GroupMemberFactory

use of org.molgenis.data.security.auth.GroupMemberFactory in project molgenis by molgenis.

the class GoogleAuthenticationProcessingFilterTest method setUp.

@BeforeMethod
public void setUp() {
    authenticationSettings = mock(AuthenticationSettings.class);
    UserDetailsService userDetailsService = mock(UserDetailsService.class);
    DataService dataService = mock(DataService.class);
    GooglePublicKeysManager googlePublicKeysManager = mock(GooglePublicKeysManager.class);
    UserFactory userFactory = mock(UserFactory.class);
    GroupMemberFactory groupMemberFactory = mock(GroupMemberFactory.class);
    googleAuthenticationProcessingFilter = new GoogleAuthenticationProcessingFilter(googlePublicKeysManager, dataService, userDetailsService, authenticationSettings, userFactory, groupMemberFactory);
    request = mock(HttpServletRequest.class);
    response = mock(HttpServletResponse.class);
}
Also used : GooglePublicKeysManager(com.google.api.client.googleapis.auth.oauth2.GooglePublicKeysManager) HttpServletRequest(javax.servlet.http.HttpServletRequest) AuthenticationSettings(org.molgenis.security.settings.AuthenticationSettings) UserFactory(org.molgenis.data.security.auth.UserFactory) HttpServletResponse(javax.servlet.http.HttpServletResponse) UserDetailsService(org.molgenis.security.user.UserDetailsService) GroupMemberFactory(org.molgenis.data.security.auth.GroupMemberFactory) DataService(org.molgenis.data.DataService) BeforeMethod(org.testng.annotations.BeforeMethod)

Aggregations

GooglePublicKeysManager (com.google.api.client.googleapis.auth.oauth2.GooglePublicKeysManager)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 DataService (org.molgenis.data.DataService)1 GroupMemberFactory (org.molgenis.data.security.auth.GroupMemberFactory)1 UserFactory (org.molgenis.data.security.auth.UserFactory)1 AuthenticationSettings (org.molgenis.security.settings.AuthenticationSettings)1 UserDetailsService (org.molgenis.security.user.UserDetailsService)1 BeforeMethod (org.testng.annotations.BeforeMethod)1