Customizing the authentication method
The default implementation for authentication is a Java™ Authentication and Authorization Service (JAAS) authentication method. If the JAAS authentication method does not suit, you can change to one of the other provided authentication methods, or implement your own custom authentication method.
About this task
The following authentication methods are available in the application. For more information, see
Universal Access authentication. To use any of the provided authentication methods, set
the REACT_APP_AUTH_METHOD environmental variable in the appropriate
.env file to one of the following options and set any related environmental
variables. For example:
REACT_APP_AUTH_METHOD=SSOIDPAuthentication
JAASAuthentication(Default for production environments. That is, npm start with .env.development.)
No further environmental variables needed.
DevAuthentication(Default for development environments.)
Set the Simple authentication for development environmental variables.
SSOSPAuthenticationService-provider (SP)-initiated SAML 2.0 web SSO.
SSOIDPAuthenticationIdentity provider (IdP)-initiated SAML 2.0 web SSO.
If you set SSO authentication, you must set the Single sign-on (SSO) authentication environmental variables.
For more information about environmental variables, see the React environment variable reference.
If you want to use custom authentication, you must create a custom authentication method and register the new authentication method as follows: