ART Framework API Docs
    Preparing search index...

    Class ZyntopiaOAuthStrategy

    Zyntopia-specific OAuth 2.0 authentication strategy. Pre-configured for Zyntopia services with standard endpoints, scopes, and authentication flows. Extends GenericOAuthStrategy with Zyntopia-specific defaults and configurations.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Gets the current environment this strategy is configured for.

      Returns "production" | "staging" | "development"

      The environment ('production', 'staging', or 'development').

    • Gets information about the current cached token.

      Returns null | { expiresAt: Date; hasRefreshToken: boolean; scope?: string }

      Token information or null if no token is cached.

    • Checks if this strategy is configured for development/testing.

      Returns boolean

      True if configured for development or staging, false for production.

    • Checks if this strategy is configured for production environment.

      Returns boolean

      True if configured for production, false otherwise.

    • Creates a ZyntopiaOAuthStrategy instance pre-configured for development.

      Parameters

      • clientId: string

        Zyntopia client ID

      • clientSecret: string

        Zyntopia client secret

      • OptionalcustomScopes: string

        Optional custom scopes (defaults to development scopes)

      Returns ZyntopiaOAuthStrategy

      Configured ZyntopiaOAuthStrategy for development.

    • Creates a ZyntopiaOAuthStrategy instance pre-configured for production.

      Parameters

      • clientId: string

        Zyntopia client ID

      • clientSecret: string

        Zyntopia client secret

      • OptionalcustomScopes: string

        Optional custom scopes (defaults to production scopes)

      Returns ZyntopiaOAuthStrategy

      Configured ZyntopiaOAuthStrategy for production.

    • Creates a ZyntopiaOAuthStrategy instance pre-configured for staging.

      Parameters

      • clientId: string

        Zyntopia client ID

      • clientSecret: string

        Zyntopia client secret

      • OptionalcustomScopes: string

        Optional custom scopes (defaults to staging scopes)

      Returns ZyntopiaOAuthStrategy

      Configured ZyntopiaOAuthStrategy for staging.

    • Gets the default scopes for a specific environment.

      Parameters

      • environment: "production" | "staging" | "development"

        The environment to get scopes for

      Returns string

      Default scopes for the specified environment.

    • Gets the token endpoint for a specific environment.

      Parameters

      • environment: "production" | "staging" | "development"

        The environment to get endpoint for

      Returns string

      Token endpoint URL for the specified environment.