@inrupt/solid-client-access-grants
    Preparing search index...

    Function getAccessGrantFromRedirectUrl

    • Get the Access Grant out of the incoming redirect from the Access Management app.

      Parameters

      • redirectUrl: string | URL

        The URL the user has been redirected to from the access management app.

      • options: {
            fetch?: {
                (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
                (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            };
            returnLegacyJsonld: false;
        }

        Optional properties to customise the behaviour:

        • fetch: an authenticated fetch function. If not provided, the default session from @inrupt/solid-client-authn-browser will be used if available.
        • Optionalfetch?: {
              (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
              (input: string | URL | Request, init?: RequestInit): Promise<Response>;
          }
        • returnLegacyJsonld: false

      Returns Promise<DatasetWithId>

      An Access Grant

      0.5.0

    • Get the Access Grant out of the incoming redirect from the Access Management app.

      Parameters

      • redirectUrl: string | URL

        The URL the user has been redirected to from the access management app.

      • Optionaloptions: {
            fetch?: {
                (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
                (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            };
            returnLegacyJsonld?: true;
        }

        Optional properties to customise the behaviour:

        • fetch: an authenticated fetch function. If not provided, the default session from @inrupt/solid-client-authn-browser will be used if available.
        • Optionalfetch?: {
              (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
              (input: string | URL | Request, init?: RequestInit): Promise<Response>;
          }
        • OptionalreturnLegacyJsonld?: true

      Returns Promise<AccessGrant>

      An Access Grant

      0.5.0

      Use RDFJS API

    • Get the Access Grant out of the incoming redirect from the Access Management app.

      Parameters

      • redirectUrl: string | URL

        The URL the user has been redirected to from the access management app.

      • Optionaloptions: {
            fetch?: {
                (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
                (input: string | URL | Request, init?: RequestInit): Promise<Response>;
            };
            returnLegacyJsonld?: boolean;
        }

        Optional properties to customise the behaviour:

        • fetch: an authenticated fetch function. If not provided, the default session from @inrupt/solid-client-authn-browser will be used if available.
        • Optionalfetch?: {
              (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
              (input: string | URL | Request, init?: RequestInit): Promise<Response>;
          }
        • OptionalreturnLegacyJsonld?: boolean

      Returns Promise<DatasetWithId>

      An Access Grant

      0.5.0

      Use RDFJS API