map.apps Bundle APIs 4.20.2
    Preparing search index...

    Interface PortalLoginService

    Service to access security information of ArcGIS services like ArcGIS Enterprise portal.

    interface PortalLoginService {
        getPortalCredential(): Credential | undefined;
        getPortalUserSelfInfo(): Promise<Record<string, any>>;
        isSignedIn(): boolean;
        signIn(): Promise<Credential | undefined>;
        signOut(): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets the token for the portal or undefined if user is not signed in.

      Returns Credential | undefined

      The user's credentials.

    • Gets the response of the community/self endpoint of ArcGIS Online or undefined if user is not signed in.

      Returns Promise<Record<string, any>>

    • Checks if the user is signed in to ArcGIS Online

      Returns boolean

    • Forces a sign-in to ArcGIS Online. The user is prompted to enter credentials.

      Returns Promise<Credential | undefined>

      The user's credentials, wrapped in a promise.

    • Clears all ArcGIS Online Tokens.

      Returns void