MonoCloud Authentication SDK
    Preparing search index...
    Index
    • Handles the OpenID callback after the user authenticates with MonoCloud.

      Processes the authorization code, validates the state and nonce, exchanges the code for tokens, initializes the user session, and performs the final redirect to the application's return URL.

      Parameters

      Returns Promise<any>

      A promise that resolves when the callback processing and redirection are complete.

      MonoCloudValidationError If the state is mismatched or tokens are invalid.

    • Checks if the current session user belongs to the specified groups.

      Parameters

      • request: IMonoCloudCookieRequest

        MonoCloud cookie request object.

      • response: IMonoCloudCookieResponse

        MonoCloud cookie response object.

      • groups: string[]

        List of group names or IDs to check.

      • OptionalgroupsClaim: string

        Optional claim name that holds groups. Defaults to the configured groupsClaim option ("groups" unless overridden).

      • OptionalmatchAll: boolean

        If true, requires membership in all groups; otherwise any one group is sufficient.

      Returns Promise<boolean>

      true if the user satisfies the group condition, false otherwise.