- Access the UID workspace (e.g.,
https://your-site.ui.com
). - Log in with your credentials.
-
Select the
Manager Portal
. You will be prompted to verify with MFA. -
Select
SSO Apps
in the left-hand menu. -
Press the Plus button in the top right-hand corner.
-
Select
Add Custom App
-
Select
OIDC
from the menu -
Fill in the details for your application. The required fields needed are
Initiate Sign-In URI
andSign-In Redirect URI
.Initiate Sign-In URI - (e.g.,
https://voucher.example.com
) Sign-In Redirect URI - (e.g.,https://voucher.example.com/oidc/callback
) -
Press Add. You will now be presented with your Tool Collection for the app. Copy your
Client ID
,Client Secret
and the value form yourWell Known Config Endpoint
. -
Press Done. You can now assign users or groups to the application. The setup has been completed UID side.
Now, configure your UniFi Voucher Site to use the UID client.
- In your UniFi Voucher Site configuration, set
AUTH_OIDC_ENABLED
totrue
. - Set the
AUTH_OIDC_CLIENT_ID
as found within the UID Application. - Provide the
AUTH_OIDC_CLIENT_SECRET
as found within the UID Application. - Provide the
AUTH_OIDC_ISSUER_BASE_URL
from your UID domain (e.g.,https://your-site.ui.com/gw/idp/api/v1/public/oauth/your-secret-token/.well-known/openid-configuration
). - Provide the
AUTH_OIDC_APP_BASE_URL
from your UniFi Voucher Site instance (e.g.,https://voucher.example.com
). - Restart the container after these changes
From UID Workspace
Navigate to the Applications section and select your application. This will launch the application. If you followed the steps correctly you should be able to access the voucher site without needing to authenticate.
External Sign In from outside of UID
Notice: You will only be prompted for UID sign-in if you have not signed in within your predefined sign in policy in UID.
Access your application via the Initiate Sign-In URI
this will prompt a new window to sign in to UID. Once you sign in you will be redirected back to your application.
That's it you now have OIDC setup and can sign in to your application!