Axinom Mosaic Libraries
    Preparing search index...

    Function handleEndUserAuthorization

    • This function can be used to determine if a end user is allowed to consume a specific operation. If the authorization fails, an AxGuard error is thrown.

      Parameters

      • options: GqlAuthorizationOptions

        a GqlAuthorizationOptions object. The options and endUserAuthorizationConfig properties are mandatory.

      • ensureOnlyAuthentication: boolean

        a boolean value indicating if authorization validations should be performed or checking for authentication is sufficient.

      • subject: GenericAuthenticatedSubject | undefined

        A GenericAuthenticatedSubject

      • authErrorInfo: MosaicErrorInfo | undefined

        AxGuardErrorInfo

      Returns void

      an AxGuardError if the authorization fails.