iya-sts
    Preparing search index...
    permissionFor: (
        scope: any,
        resource: any,
    ) => {
        id: string;
        name: string;
        problem: string;
        sameAsAdvertised: boolean;
        scope: string;
        stripped: boolean;
    } = ...

    Type Declaration

      • (
            scope: any,
            resource: any,
        ): {
            id: string;
            name: string;
            problem: string;
            sameAsAdvertised: boolean;
            scope: string;
            stripped: boolean;
        }
      • Turns one advertised scope into a permission of the resource, taking the resource's base off where it prefixes the scope.

        Parameters

        • scope: any

          the scope

        • resource: any

          the resource identifier

        Returns {
            id: string;
            name: string;
            problem: string;
            sameAsAdvertised: boolean;
            scope: string;
            stripped: boolean;
        }

        { scope, name, stripped, id, ... }