AuthPortal

AuthPortal

Docker app from grtgbln's Repository

Overview

AuthPortal is a lightweight, self-hosted authentication gateway for Plex users. It reproduces Overseerr’s clean popup login (no code entry), stores the Plex token, and issues a secure session cookie for your intranet portal.

Requirements


        Requires a separate Postgres database.
    

Runtime arguments

Web UI
http://[IP]:[PORT:8080]/
Network
bridge
Privileged
false

Template configuration

Web UI PortPorttcp

Container Port: 8080

Target
8080
Default
8080
Value
8080
Database Connection URLVariable

Postgres database connection URL

Target
DATABASE_URL
Default
postgres://POSTGRES_USER:POSTGRES_PASSWORD@POSTGRES_IP:5432/AuthPortaldb?sslmode=disable
Value
postgres://POSTGRES_USER:POSTGRES_PASSWORD@POSTGRES_IP:5432/AuthPortaldb?sslmode=disable
App Base URLVariable

Public URL of this service. If using HTTPS, cookies will be marked Secure.

Target
APP_BASE_URL
Default
http://IP_ADDRESS:PORT
Value
http://IP_ADDRESS:PORT
Trusted Proxy CIDR RangesVariable

Comma-separated list of trusted proxy CIDR ranges for forwarded headers

Target
TRUSTED_PROXY_CIDRS
Media ServerVariable

Type of media server to authenticate against

Target
MEDIA_SERVER
Default
plex|emby|jellyfin
Session SecretVariable

HMAC secret for JWT cookie

Target
SESSION_SECRET
Data KeyVariable

Base64 32-byte key for sealing tokens at rest

Target
DATA_KEY
Force Secure CookieVariable

Set to 1 to force Secure on cookies (behind TLS/ingress)

Target
FORCE_SECURE_COOKIE
Default
0|1
Force HSTS HeaderVariable

Set to 1 to force HSTS headers even if APP_BASE_URL is http (when TLS terminates upstream)

Target
FORCE_HSTS
Default
0|1
Authorized Page - External URLVariable

External URL on authorized page

Target
LOGIN_EXTRA_LINK_URL
Authorized Page - External URL TextVariable

Text for external URL on authorized page

Target
LOGIN_EXTRA_LINK_TEXT
Unauthorized Page Request - EmailVariable

Email address for unauthorized page request access link

Target
UNAUTH_REQUEST_EMAIL
Unauthorized Page Request - Email SubjectVariable

Subject for unauthorized page request access email

Target
UNAUTH_REQUEST_SUBJECT
Plex - Owner TokenVariable

Token from Plex server owner; used to validate server membership.

Target
PLEX_OWNER_TOKEN
Plex - Server Machine IDVariable

Machine ID of your Plex server (preferred over name).

Target
PLEX_SERVER_MACHINE_ID
Plex - Server NameVariable

Optional: Plex server name (used if machine ID not set).

Target
PLEX_SERVER_NAME
Emby - Server URLVariable

URL of your Emby server (e.g. http://IP:PORT).

Target
EMBY_SERVER_URL
Emby - Server API KeyVariable

API key from your Emby server.

Target
EMBY_API_KEY
Emby - App NameVariable

Name of the Emby application (for client headers).

Target
EMBY_APP_NAME
Default
AuthPortal
Value
AuthPortal
Emby - App VersionVariable

Version of the Emby application (for client headers).

Target
EMBY_APP_VERSION
Jellyfin - Server URLVariable

URL of your Jellyfin server (e.g. http://IP:PORT).

Target
JELLYFIN_SERVER_URL
Jellyfin - Server API KeyVariable

API key from your Jellyfin server.

Target
JELLYFIN_API_KEY
Jellyfin - App NameVariable

Name of the Jellyfin application (for client headers).

Target
JELLYFIN_APP_NAME
Default
AuthPortal
Value
AuthPortal
Jellyfin - App VersionVariable

Version of the Jellyfin application (for client headers).

Target
JELLYFIN_APP_VERSION
OIDC Provider - Signing KeyVariable

PEM-encoded private key for OIDC ID token signing

Target
OIDC_SIGNING_KEY
OIDC Provider - Issuer URLVariable

Issuer URL for OIDC provider (should match APP_BASE_URL)

Target
OIDC_ISSUER_URL
Default
http://IP_ADDRESS:PORT
Value
http://IP_ADDRESS:PORT
Trusted Redirect HostsVariable

Optional, comma-separated allow-list for absolute OIDC redirect_uri hosts

Target
TRUSTED_REDIRECT_HOSTS
Log LevelVariable

Logging level

Target
LOG_LEVEL
Default
INFO|DEBUG|WARN|ERROR

Download Statistics

10,162
Total Downloads

Details

Repository
modomofn/auth-portal:latest
Last Updated2026-05-19
First Seen2025-08-21

Run AuthPortal on Unraid.

AuthPortal is listed in Community Apps for Unraid OS. Explore Unraid to build a flexible home server, NAS, or homelab.