Search in sources :

Example 1 with OAuth2IdentityProvider

use of org.sonar.api.server.authentication.OAuth2IdentityProvider in project sonarqube by SonarSource.

the class AuthenticationEventSourceTest method newOauth2IdentityProvider.

private static OAuth2IdentityProvider newOauth2IdentityProvider(String name) {
    OAuth2IdentityProvider mock = mock(OAuth2IdentityProvider.class);
    when(mock.getName()).thenReturn(name);
    return mock;
}
Also used : OAuth2IdentityProvider(org.sonar.api.server.authentication.OAuth2IdentityProvider)

Aggregations

OAuth2IdentityProvider (org.sonar.api.server.authentication.OAuth2IdentityProvider)1