OIDC with UniFi Identity¶
UniFi Identity Enterprise can act as an OpenID Connect provider for internal applications.
- In UniFi Identity Enterprise, add an application with the OIDC sign-on method:
- Redirect URI:
https://hangar.example.com/auth/oidc/unifi/callback. - Copy the client ID, client secret and issuer URL that it shows.
- Assign the users or groups who may use Hangar.
- Configure Hangar:
oidc:
providers:
- id: unifi
name: UniFi
issuer: <issuer URL from the application>
client_id: <client ID>
scopes: [openid, profile, email, groups]
claims: {username: preferred_username, email: email, name: name, groups: groups}
admin_groups: [hangar-admins]
auto_create_users: true