Interface OAuth2ProviderConfig

Hierarchy

  • OAuth2ProviderConfig

Methods

  • InitProvider returns a new auth.Provider instance loaded with the current OAuth2ProviderConfig options.

    Returns Provider

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

    Returns void

Properties

authURL: string
clientId: string
clientSecret: string
displayName: string
name: string
pkce?: boolean

PKCE overwrites the default provider PKCE config option.

This usually shouldn't be needed but some OAuth2 vendors, like the LinkedIn OIDC, may require manual adjustment due to returning error if extra parameters are added to the request (https://github.com/pocketbase/pocketbase/discussions/3799#discussioncomment-7640312)

tokenURL: string
userInfoURL: string

Generated using TypeDoc