Search in sources :

Example 1 with SettingsException

use of com.onelogin.saml2.exception.SettingsException in project sonarqube by SonarSource.

the class SamlIdentityProvider method init.

@Override
public void init(InitContext context) {
    try {
        Auth auth = newAuth(initSettings(context.getCallbackUrl()), context.getRequest(), context.getResponse());
        auth.login(context.generateCsrfState());
    } catch (IOException | SettingsException e) {
        throw new IllegalStateException("Fail to intialize SAML authentication plugin", e);
    }
}
Also used : Auth(com.onelogin.saml2.Auth) IOException(java.io.IOException) SettingsException(com.onelogin.saml2.exception.SettingsException)

Aggregations

Auth (com.onelogin.saml2.Auth)1 SettingsException (com.onelogin.saml2.exception.SettingsException)1 IOException (java.io.IOException)1