OIDC authentication
Budget Board supports third-party authentication via OpenID Connect (OIDC). This allows you to use an external identity provider (IdP) for user authentication instead of the built-in username/password system.
A good self-hosted example is Pocket ID.
Setting up OIDC authentication
Configuring your OIDC provider
Exact configuration details will vary depending on your OIDC provider. Generally, you will need to:
- Create a new application/client in your OIDC provider's dashboard.
- If required:
- Set the client type to
Confidential. - Set the allowed grant types to include
Authorization Code.
- Set the client type to
- Set the redirect URI to your application's callback endpoint.
- For Budget Board, use:
http://{yourDomain}/oidc-callback - Replace
{yourDomain}with the domain name or the IP address and port you use to access Budget Board (e.g.,localhost:6253by default).
- For Budget Board, use:
- Make a note of the Client ID and Client Secret provided by your OIDC provider.
Application Configuration
Once your OIDC provider is set up, configure your Budget Board application to use it. Set the environment variables in the compose.env file as defined in OIDC Configuration.
Using OIDC Authentication
When OIDC authentication is enabled, users will see an option to log in via the configured OIDC provider on the login page. Clicking this option will redirect them to the OIDC provider's login page. After successful authentication, users will be redirected back to Budget Board.
Connecting OIDC
If you wish to add OIDC authentication to a Budget Board account, follow these steps:
New users
When a user logs in via OIDC for the first time, a new account will be created for them in Budget Board using the information provided by the OIDC provider (e.g., email address, name).
Existing users
If a user already has an account in Budget Board with the same email address as provided by the OIDC provider, they will be linked to that existing account upon logging in via OIDC.
Disconnecting OIDC
If you wish to disconnect your OIDC account from your local Budget Board account, you can do so from the Settings page after logging in. This will revert your account back to using the built-in username/password authentication method.
If you disconnect OIDC and do not have a local password set, you will first need to set a password via the Create Password section in the Settings page.