Package com.microstrategy.web.app.tasks
Class AuthenticationHelper
- java.lang.Object
-
- com.microstrategy.web.tasks.BaseAuthenticationHelper
-
- com.microstrategy.web.app.tasks.AuthenticationHelper
-
public class AuthenticationHelper extends BaseAuthenticationHelper
-
-
Constructor Summary
Constructors Constructor Description AuthenticationHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configureLocalesFromRequest(WebIServerSession activeSession, ContainerServices cnts, RequestKeys rk)
static boolean
isLoginFailureCode(int webAPIErrorCode)
Defines if a list of Web API Error code returned by IServer is some kind of login failure DE127390 - Redirect on Login Failure NOTE: Needs to be updated as authentication modes are addedstatic void
setup(int authMode, WebIServerSession session, AppContext appContext)
static void
setupIntegrated(WebIServerSession session, AppContext appContext)
Configures the givenWebIServerSession
forEnumDSSXMLAuthModes.DssXmlAuthIntegrated
by extracting relevant parameters fromAppContext
.static void
setupNativeOidc(WebIServerSession session, AppContext appContext)
static void
setupToken(WebIServerSession session, AppContext appContext)
Setup tokenstatic void
setupTrustInformation(WebIServerSession session, AppContext appContext)
Set session properties from headers and token for trusted authentication-
Methods inherited from class com.microstrategy.web.tasks.BaseAuthenticationHelper
getEncodeFormat, getGroupsXML, getGroupsXML, getGroupsXML, getHeaderValue, getLDAPDistinguishedName, getSecurityPluginProperties, getSecurityPluginProperties, setupTrustInformation
-
-
-
-
Method Detail
-
setup
public static void setup(int authMode, WebIServerSession session, AppContext appContext) throws TaskInternalException
- Throws:
TaskInternalException
-
setupNativeOidc
public static void setupNativeOidc(WebIServerSession session, AppContext appContext) throws TaskInternalException
- Throws:
TaskInternalException
-
setupTrustInformation
public static void setupTrustInformation(WebIServerSession session, AppContext appContext)
Set session properties from headers and token for trusted authentication- Parameters:
session
-WebIServerSession
appContext
-AppContext
-
setupToken
public static void setupToken(WebIServerSession session, AppContext appContext)
Setup token- Parameters:
session
-WebIServerSession
appContext
-AppContext
-
setupIntegrated
public static void setupIntegrated(WebIServerSession session, AppContext appContext)
Configures the givenWebIServerSession
forEnumDSSXMLAuthModes.DssXmlAuthIntegrated
by extracting relevant parameters fromAppContext
.- Parameters:
session
-WebIServerSession
to configureappContext
-AppContext
configuration parameters
-
configureLocalesFromRequest
public static void configureLocalesFromRequest(WebIServerSession activeSession, ContainerServices cnts, RequestKeys rk)
-
isLoginFailureCode
public static boolean isLoginFailureCode(int webAPIErrorCode)
Defines if a list of Web API Error code returned by IServer is some kind of login failure DE127390 - Redirect on Login Failure NOTE: Needs to be updated as authentication modes are added- Parameters:
webAPIErrorCode
-- Returns:
- boolean
-
-