public class SSOUtils extends Object
Constructor and Description |
---|
SSOUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
generateConsumerUrl(org.apache.catalina.connector.Request request,
Properties ssoSPConfigProperties)
By default this method generates the ACS url based on the application server hostname + tenant.suffix.
|
static String |
generateIssuerID(String contextPath) |
static String |
getSAMLSSOURLforApp(String requestURI,
Properties ssoSPConfigProperties) |
static boolean |
isSSOSPConfigExists() |
static String |
removeTenantFromURI(String uri,
String customACSUrl,
String tenantName)
In case an end user wishes to access a web application from a custom domain without any tenant awareness by
fronting the application server with a router like Nginx, we need to detect such a scenario and remove the
tenant component from all redirect URIs during the SSO flow.
|
public static boolean isSSOSPConfigExists()
public static String getSAMLSSOURLforApp(String requestURI, Properties ssoSPConfigProperties)
public static String generateConsumerUrl(org.apache.catalina.connector.Request request, Properties ssoSPConfigProperties)
request
- request objectssoSPConfigProperties
- SSO properties loaded from server level sso-sp-config.properties file.public static String removeTenantFromURI(String uri, String customACSUrl, String tenantName)
uri
- original URI pathcustomACSUrl
- a custom HTTP header containing a different ACS urltenantName
- Name of tenant that owns the web application.Copyright © 2018 WSO2. All rights reserved.