Hierarchy

  • OAuth2Config

Methods

  • GetProviderConfig returns the first OAuth2ProviderConfig that matches the specified name.

    Returns false and zero config if no such provider is available in c.Providers.

    Parameters

    • name: string

    Returns [OAuth2ProviderConfig, boolean]

  • UnmarshalJSON implements the [json.Unmarshaler] interface.

    The main difference from the standard unmarshalization is that instead of replacing the entire providers config slice, we ensure that partially submitted provider data (e.g. without clientSecret) is merged on per config level based on the provider name (https://github.com/pocketbase/pocketbase/issues/7815).

    Parameters

    • b: string | number[]

    Returns void

  • Validate makes OAuth2Config validatable by implementing [validation.Validatable] interface.

    Returns void

Properties

enabled: boolean
mappedFields: OAuth2KnownFields

Generated using TypeDoc