Member Junction
    Preparing search index...

    Fetches, caches, and resolves the public authentication-provider catalog.

    All members are static: this runs before the Angular injector exists.

    Index

    Constructors

    Methods

    • Builds the catalog URL. With a configured MJAPI URL (MJAPI_URI, MJ #5674) the catalog is <MJAPI URL>/auth/providers. Without one it keeps the pre-#5674 behaviour: /auth/providers at the GraphQL endpoint's origin. The catalog is served by the same MJServer instance, mounted ahead of the auth middleware.

      Parameters

      • graphqlUri: string
      • OptionalmjapiUri: string

      Returns string

    • Fetches the public provider catalog.

      Never throws and never rejects: a deployment whose server predates this endpoint, or whose network is briefly unavailable, must still reach its login screen through the compiled AUTH_TYPE path. Failure is reported as an empty list.

      Parameters

      • graphqlUri: string
      • timeoutMs: number = DEFAULT_FETCH_TIMEOUT_MS
      • OptionalmjapiUri: string

      Returns Promise<PublicAuthProviderInfo[]>

    • Records the user's picker choice and reports whether the page must reload to apply it.

      A reload is required whenever the chosen provider differs from the one already wired into DI: each browser SDK contributes Angular providers (interceptors, guards, config tokens) at module-definition time, so switching providers cannot be done in a live injector. Choosing the provider that is already active needs no reload — the caller simply calls login().

      Parameters

      Returns { requiresReload: boolean }