iya-sts
    Preparing search index...

    Variable authenticate

    authenticate: (req: any, options?: AuthenticateOptions) => Promise<any> = ...

    Type Declaration

      • (req: any, options?: AuthenticateOptions): Promise<any>
      • Judges a presented GNAP token completely: presentation(), then the token verified in its own format against the audience and the access the request needs.

        Parameters

        • req: any

          the request presenting the token

        • Optionaloptions: AuthenticateOptions

          { audience, requiredAccess, base }

        Returns Promise<any>

        { ok, record, model, method }, or a refusal carrying the WWW-Authenticate reason