The frontend routes are hash routes, so frontendUrl("/login") builds
https://host/app/#/login. That value went into post_logout_redirect_uri, which
OIDC RP-Initiated Logout does not allow to carry a fragment; Keycloak rejects
the request, so logging out with logout_idp_session: true failed, and turning it
off left the IdP session open.
Strip the fragment before the value is put on the end session URL. The browser
lands on the app root instead, which the client already handles.
The OIDC client was only extracting claims from the ID token, but many
OIDC providers (like Authelia) don't include all user information in the
ID token. Fields like 'preferred_username' are typically only available
via the userinfo endpoint.
This fix fetches additional user information from the provider's userinfo
endpoint and merges it with the ID token claims, ensuring that all
required user fields are available for user registration and login.
Fixes#697
Signed-off-by: Aram Akhavan <1147328+kaysond@users.noreply.github.com>
* Enable allowed_domains in oauth and oidc providers
Signed-off-by: Vladimir DOMBROVSKI <vladimir.dombrovski@bso.co>
* Domain check code cleanup
* Run gofmt on domain validation code
---------
Signed-off-by: Vladimir DOMBROVSKI <vladimir.dombrovski@bso.co>
Initial alpha codebase for version 2 of WireGuard Portal.
This version is considered unstable and incomplete (for example, no public REST API)!
Use with care!
Fixes/Implements the following issues:
- OAuth support #154, #1
- New Web UI with internationalisation support #98, #107, #89, #62
- Postgres Support #49
- Improved Email handling #47, #119
- DNS Search Domain support #46
- Bugfixes #94, #48
---------
Co-authored-by: Fabian Wechselberger <wechselbergerf@hotmail.com>