Lets people sign in to your apps with an outside sign-in provider (OpenID Connect) instead of Authelia. Each app chooses which gate it stands behind
On this page
At a glance#
- What it is
- Outside Sign-in Gate Security
- Where it opens
- No web page It works in the background
- Updates
- Automatic A backup is taken first, and it rolls back if the update fails
- Backups
- Included Part of the daily backup when that's switched on
- Copies
- One per server
- Needs
- A domain, Traefik
There's no step-by-step guide for OAuth2 Proxy here yet. Everything below comes straight from the app catalogue, so it's what LibrePortal really does when you install it. For using OAuth2 Proxy itself, its own documentation is the place to go: github.com/oauth2-proxy/oauth2-proxy.
Addresses and ports#
OAuth2 Proxy has one port. LibrePortal picks a free port number for each when you install, so yours will differ from anyone else's. The Config tab's Network section shows them, and the app's Open button uses the right one. "Anyone" means it's reachable from wherever your server is reachable; you can make it private later.
| What it is | Who can reach it | With a domain |
|---|---|---|
| Sign-in Page TCP | Anyone | signin.your-domain |
Settings#
In its config file#
OAuth2 Proxy's own settings aren't on the Config tab yet. They live in the app's config file, described here so you know they exist. How to change them.
| Setting | What it does | Starts as |
|---|---|---|
NameCFG_OAUTH2PROXY_DISPLAY_NAME |
What this app is called on your dashboards. Leave empty to use its usual name | Empty |
Show on the LibrePortal DashboardCFG_OAUTH2PROXY_SHOW_ON_DASHBOARD |
Whether this app gets a shortcut on the front page of the LibrePortal WebUI, separate from any Dashy dashboard Choices: true, false |
false |
Provider AddressCFG_OAUTH2PROXY_AUTH_EXT_ISSUER |
The outside provider's issuer address, like https://id.example.com. Set it from Admin, Single sign-on | Empty |
Client IDCFG_OAUTH2PROXY_AUTH_EXT_CLIENT_ID |
The id this server has at the provider | Empty |
Provider NameCFG_OAUTH2PROXY_AUTH_EXT_BUTTON_LABEL |
What the provider is called on screen | Empty |
Sign-in Lasts (hours) AdvancedCFG_OAUTH2PROXY_SESSION_HOURS |
How long a sign-in at the gate lasts before the provider is asked again | 12 |
Check Again Every (seconds) AdvancedCFG_OAUTH2PROXY_RECHECK_SECONDS |
How often a person's groups are read again, so a removed grant or a sign-out at the provider ends access this soon | 60 |
Scopes AdvancedCFG_OAUTH2PROXY_SCOPES |
What the gate asks the provider for. Take groups out if your provider refuses it | openid email profile groups |
Domain SupportCFG_OAUTH2PROXY_DOMAIN_SUPPORT |
What this app can do with more than one address | one |
Domain ChangeCFG_OAUTH2PROXY_DOMAIN_CHANGE |
What moving it to another domain after install breaks | free |
Extra AddressesCFG_OAUTH2PROXY_ALIASES |
Other addresses that serve this app in full, comma-separated | Empty |
Old AddressesCFG_OAUTH2PROXY_REDIRECTS |
Other addresses that send visitors on to this app, comma-separated | Empty |
Works with#
These are the other apps OAuth2 Proxy knows how to work with. Once it's installed, its page shows the same list with whether each one is connected. How this works.
- Grafana: Shows dashboards for the apps that have one. works with every app
- Prometheus: Collects metrics from the apps that can export them. works with every app
- Uptime Kuma: Watches your apps and shows when one goes down. works with every app
Privacy and security#
All clear OAuth2 Proxy signs people in with the outside provider you set and keeps that sign-in in a cookie. It talks only to that provider.
What leaves this server#
- The sign-in itself goes to the outside provider you chose
What LibrePortal turns off#
Nothing needed switching off.
Licence: MIT. Audited: 2 December 2026. See the privacy of every app and the Promise.
Sources#
Under the hood#
- It runs this image:
quay.io/oauth2-proxy/oauth2-proxy:v7.15.6-alpine@sha256:398b6e2ee5b8c9d61ae8f099236568b9eae9cdc28f5645542bb1e03d57d477ed. - It can sit behind Authelia's sign-in once Authelia is installed.
- Its own project and documentation: github.com/oauth2-proxy/oauth2-proxy
Ports, settings, tools and connections on this page are read from LibrePortal v0.10.217's app catalogue each time the guide is built.