OptionalallowAllows authorization parameters to be overridden using query parameters.
When disabled, parameters such as scope, resource, prompt, and login_hint present in the request URL are ignored and cannot modify the authentication request.
OptionalappBase URL where the application is hosted.
Used to construct redirect URLs and validate requests.
OptionalclientClient identifier of the application registered in MonoCloud.
OptionalclientOptional client secret used for confidential clients.
OptionalclockAllowed clock skew (in seconds) when validating token timestamps.
OptionalcookieSecret used to encrypt and sign authentication cookies. This value should be long, random, and kept private.
OptionaldebuggerIdentifier used for internal debugging/logging.
OptionaldefaultDefault authorization parameters automatically included in authentication requests unless explicitly overridden.
OptionalfederatedWhen true, signing out also logs the user out of MonoCloud (Single Sign-Out).
OptionalfilteredList of ID token claims that should be removed before storing data in the session.
OptionalidExpected signing algorithm for ID tokens.
OptionaljwksDuration (in seconds) to cache the JWKS document.
OptionalmetadataDuration (in seconds) to cache OpenID discovery metadata.
OptionalonInvoked when a back-channel logout request is received.
OptionalonInvoked before a session is created or updated. Can be used to modify session data or attach custom fields.
OptionalonInvoked before authentication begins to attach custom application state.
OptionalpostURL to redirect users to after logout completes.
OptionalrefetchRefetch user profile data whenever the application's UserInfo endpoint is invoked.
OptionalresourcesOptional resource indicators available when requesting tokens via getTokens().
OptionalresponseMaximum time (in milliseconds) to wait for responses from the MonoCloud authorization server.
OptionalroutesOverrides for built-in authentication route paths.
OptionalsessionSession configuration overrides.
OptionalstateConfiguration for authentication state handling.
OptionaltenantMonoCloud tenant domain (for example, https://your-tenant.us.monocloud.com).
OptionaluseEnables Pushed Authorization Requests (PAR).
When enabled, authorization parameters are sent securely via the PAR endpoint instead of the browser.
OptionaluserCustom User-Agent value sent with requests to MonoCloud.
OptionaluserFetch user profile data from the UserInfo endpoint after authentication completes.
Configuration options used to initialize the SDK client.
Configuration Sources
Configuration values can be provided using either:
MONOCLOUD_AUTH_*variables.When both are provided, constructor options override environment variables.
Environment Variables
Core Configuration (Required)
MONOCLOUD_AUTH_CLIENT_IDMONOCLOUD_AUTH_CLIENT_SECRETMONOCLOUD_AUTH_TENANT_DOMAINhttps://your-tenant.us.monocloud.com).MONOCLOUD_AUTH_APP_URLMONOCLOUD_AUTH_COOKIE_SECRETAuthentication & Security
MONOCLOUD_AUTH_SCOPESopenid profile email).MONOCLOUD_AUTH_RESOURCEMONOCLOUD_AUTH_USE_PARMONOCLOUD_AUTH_CLOCK_SKEWMONOCLOUD_AUTH_FEDERATED_SIGNOUTtrue, signing out of the application also signs the user out of MonoCloud (SSO sign-out).MONOCLOUD_AUTH_RESPONSE_TIMEOUTMONOCLOUD_AUTH_ALLOW_QUERY_PARAM_OVERRIDESscope,resource, orprompt) to be overridden via URL query parameters.MONOCLOUD_AUTH_POST_LOGOUT_REDIRECT_URIMONOCLOUD_AUTH_USER_INFOUserInfoendpoint after authorization.MONOCLOUD_AUTH_REFETCH_USER_INFOtrue, user information is re-fetched on each userinfo request.MONOCLOUD_AUTH_ID_TOKEN_SIGNING_ALGRS256).MONOCLOUD_AUTH_FILTERED_ID_TOKEN_CLAIMSRoutes
MONOCLOUD_AUTH_CALLBACK_URLMONOCLOUD_AUTH_SIGNIN_URLMONOCLOUD_AUTH_SIGNOUT_URLMONOCLOUD_AUTH_USER_INFO_URLSession Cookie Settings
MONOCLOUD_AUTH_SESSION_COOKIE_NAMEMONOCLOUD_AUTH_SESSION_COOKIE_PATHMONOCLOUD_AUTH_SESSION_COOKIE_DOMAINMONOCLOUD_AUTH_SESSION_COOKIE_HTTP_ONLYMONOCLOUD_AUTH_SESSION_COOKIE_SECUREMONOCLOUD_AUTH_SESSION_COOKIE_SAME_SITElax,strict, ornone).MONOCLOUD_AUTH_SESSION_COOKIE_PERSISTENTMONOCLOUD_AUTH_SESSION_SLIDINGMONOCLOUD_AUTH_SESSION_DURATIONMONOCLOUD_AUTH_SESSION_MAX_DURATIONState Cookie Settings
MONOCLOUD_AUTH_STATE_COOKIE_NAMEMONOCLOUD_AUTH_STATE_COOKIE_PATHMONOCLOUD_AUTH_STATE_COOKIE_DOMAINMONOCLOUD_AUTH_STATE_COOKIE_SECUREMONOCLOUD_AUTH_STATE_COOKIE_SAME_SITElax,strict, ornone).MONOCLOUD_AUTH_STATE_COOKIE_PERSISTENTCaching
MONOCLOUD_AUTH_JWKS_CACHE_DURATIONMONOCLOUD_AUTH_METADATA_CACHE_DURATION