Overview
Turnilo can integrate with your OAuth provider. Turnilo will:
- Redirect your users to authentication page,
- Handle authorization code flow with PKCE (Proof Key for Code Exchange )
- Will decorate all data requests with access token.
Configuration
To enable OAuth support you need to add top level oauth
option in your config with following fields:
clientId
: OAuth Client Identifier for your Turnilo instancetokenEndpoint
: Full address of your token endpointauthorizationEndpoint
: Full address of your authorization endpointredirectUri
: Full address of your Turnilo installation. If you go to this address in browser, your Turnilo install should launch and show home view.tokenHeaderName
: Name of your choosing for the OAuth token header. You will be reading this header in your server plugin.
Example:
oauth:
clientId: "turnilo"
tokenEndpoint: "https://oauth.example.com/auth/oauth/token"
authorizationEndpoint: "https://oauth.example.com/auth/oauth/authorize"
tokenHeaderName: "x-turnilo-oauth-token"
redirectUri: "https://turnilo.example.com/"
Further reading
Please refer to our GitHub discussion for our use case.