Generic OAuth
Plombery has a buil-in and ready-to-use authentication system based on OAuth providers, so you can use your corporate auth system or Google, Github, etc. as long as they're compatible with OAuth.
To enable the auth system you just need to configure it via the yml
config file.
Pre-configured providers
This page shows how to configure a generic OAuth provider, though there are some providers already preconfigured by Plombery, check if your provider is available in the Authentication section of the docs.
Good to know
The auth system is based on Authlib
AuthSettings
Options available
client_id
An OAuth app client ID
client_secret
An OAuth app client secret
server_metadata_url
This a special URL that contains information about the OAuth provider
specific endpoints. If your provider doesn't have this URL or you don't
know it, you need to fill up the values for the other URLs: access_token_url,
authorize_url and jwks_uri.
For example, for Google the URL is:
access_token_url
authorize_url
jwks_uri
client_kwargs
Additional values to pass to the OAuth client during the auth process, for example the scope:
secret_key
Secret key used in the backend middleware, this has a dummy default value, but in production you should define a decent value.