iya-sts
    Preparing search index...

    Variable challenges

    challenges: (req?: AuthRequest, need?: string) => string[] = ...

    Type Declaration

      • (req?: AuthRequest, need?: string): string[]
      • Returns the WWW-Authenticate challenges a 401 offers, in this service's order of preference: Bearer, then Basic when offered, then GNAP when offered and a request is given (its as_uri needs the request's base).

        Parameters

        • Optionalreq: AuthRequest

          the request, when there is one

        • Optionalneed: string

          on a 403, the permission the operation needs: the Bearer challenge's scope then names the scopes that grant it (RFC 6750 section 3.1), not every published scope (#695)

        Returns string[]

        the challenge strings