java.lang.Object | |
↳ | com.microstrategy.web.app.AbstractExternalSecurity |
![]() |
Title: AbstractExternalSecurity.
Default basic implementation of the ExternalSecurity
interface, indicating the
logging process will be handled by the MSTR application, using the credentials as provided
by the user.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AbstractExternalSecurity() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
canReconnectSession(ContainerServices cntSvcs, WebIServerSession currentSession, int reason)
This method will be called each time Microstrategy Web tries to automatically reconnect
a session that is still valid.
| ||||||||||
boolean |
closeSessionOnLogout(RequestKeys reqKeys, ContainerServices cntSvcs, WebIServerSession user)
Method to be called when the user or system invokes a logout event.
| ||||||||||
WebAppSessionManager |
getAppSessionManager()
Get the web web app session manager.
| ||||||||||
String |
getCustomLoginURL(String originalURL, String desiredServer, int desiredPort, String desiredProject)
Returns the URL of a custom page that will handle the authentication request, in case the
handlesAuthenticationRequest() method
returned USE_CUSTOM_LOGIN_PAGE | ||||||||||
String |
getFailureURL(int reqType, ContainerServices cntrSvcs)
Once it has been determined the request has failed, this method will provide the URL information where the user
should be taken next.
| ||||||||||
WebIServerSession |
getWebIServerSession(RequestKeys reqKeys, ContainerServices cntSvcs)
Create a new session object based on the information provided.
| ||||||||||
AbstractWebLoginProvider |
getWebLoginProvider(int webLoginMode)
Get the web login provider for a particular web login mode.
| ||||||||||
int |
handlesAuthenticationRequest(RequestKeys reqKeys, ContainerServices cntSvcs, int reason)
Indicates how ExternalSecurity wants to handle the session (authentication) request
| ||||||||||
boolean |
isRequestAuthorized(RequestKeys reqKeys, ContainerServices cntSvcs, WebIServerSession user)
Determines if the user is authorized to perform the incoming request
| ||||||||||
boolean |
processMSTRLoginForm(RequestKeys reqKeys, ContainerServices cntrSvcs, LoginForm loginForm, int reason)
Manipulates the already created
WebIServerSession instance and modifies it if required | ||||||||||
void |
setAppSessionManager(WebAppSessionManager appSessionManager)
Set the web web app session manager.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getPort(RequestKeys reqKeys)
Returns the Port from RequestKeys
| ||||||||||
String |
getProject(RequestKeys reqKeys)
Returns the Project Name from RequestKeys
| ||||||||||
String |
getServer(RequestKeys reqKeys)
Returns the Server Name from RequestKeys.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This method will be called each time Microstrategy Web tries to automatically reconnect a session that is still valid. At this point, it is always related to user preferences not matching the session values. There are certain user preferences that need to be applied at the time the session is created, namely:
cntSvcs | a ContainerServices valid instance |
---|---|
currentSession | the WebIServerSession instance representing the current opened session. |
reason | The reason this method is called. Currently, there is only one reason MISMATCHED_PREFERENCES |
Method to be called when the user or system invokes a logout event. This method can also be used to perform any custom operations when the user is logged out and before the session is closed.
reqKeys | a RequestKeys valid instance |
---|---|
cntSvcs | a ContainerServices valid instance |
user | the WebIServerSession instance representing the current opened session being used for the user request
and the one from which the user is about to be logged out. |
boolean
value indicating if the session should be disconnected from the IServer and project or not.Get the web web app session manager.
WebAppSessionManager
Returns the URL of a custom page that will handle the authentication request, in case the handlesAuthenticationRequest()
method
returned USE_CUSTOM_LOGIN_PAGE
originalURL | the original url that was being called when the authentication request came up |
---|---|
desiredServer | the server where the user requests to be logged to |
desiredPort | the port where the user requests to be logged to |
desiredProject | the project where the user requests to be logged to |
String
value, since by default Web Universal will use the predefined login page
Once it has been determined the request has failed, this method will provide the URL information where the user should be taken next.
reqType | an int value indicating which request was the one that failed: AUTHENTICATION_REQUEST or
AUTHORIZATION_REQUEST |
---|---|
cntrSvcs | ContainerServices initialized instance |
String
with the URL to use for redirecting the user.
Create a new session object based on the information provided.
reqKeys | a RequestKeys valid instance |
---|---|
cntSvcs | a ContainerServices valid instance |
null
, since by default ExternalSecurity won't be taking care of creating the sessions
Get the web login provider for a particular web login mode.
AbstractWebLoginProvider
Indicates how ExternalSecurity wants to handle the session (authentication) request
reqKeys | a RequestKeys valid instance |
---|---|
cntSvcs | a ContainerServices valid instance |
reason | an int value representing the reason why session handling is required |
USE_MSTR_DEFAULT_LOGIN
value
Determines if the user is authorized to perform the incoming request
reqKeys | a RequestKeys valid instance |
---|---|
cntSvcs | a ContainerServices valid instance |
user | the WebIServerSession instance representing the current opened session being used for the user request |
true
, since by default all requests are authorized
Manipulates the already created WebIServerSession
instance and modifies it if required
reqKeys | a RequestKeys valid instance |
---|---|
cntrSvcs | a ContainerServices valid instance |
loginForm | LoginForm instance initialized with the current
information available for login |
reason | int value indicating why this session instance was created |
WebIServerSession
instance modified if so required. Might return the same instance as the initialSession
parameter.
Set the web web app session manager.
Returns the Project Name from RequestKeys
reqKeys | a RequestKeys valid instance |
---|
Returns the Server Name from RequestKeys.
reqKeys | a RequestKeys valid instance |
---|