Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial work on authentication #844

Merged
merged 37 commits into from
Jan 14, 2025
Merged

Conversation

VictorDelCampo
Copy link
Member

RISDEV-5805

@VictorDelCampo VictorDelCampo added the do not merge For sharing prototypes or ideas that are not intended for merging label Dec 16, 2024
VictorDelCampo and others added 14 commits December 16, 2024 14:03
…805_spring_security_oauth2

# Conflicts:
#	backend/gradle/libs.versions.toml
RISDEV-5805
We use a service called localhost to be able to address the keycloak
service as "localhost:8443" in the application.yaml of our application.
Using "keycloak:8443" is not possible as spring would then redirect the
user to "keycloak:8443" to login, but that is a host that is not
available on the host system. The spring boot oauth implementation is
very restrictive on the issuer and therefore creates errors if the hosts
used by it and the user to connect to keycloak differ.

See also:
 - spring-projects/spring-security#14633
 - keycloak/keycloak#29783
 - keycloak/keycloak#24252
 - https://medium.com/@kostapchuk/integrating-keycloak-with-spring-boot-in-a-dockerized-environment-813eab1f140c

RISDEV-5805
RISDEV-5805
One for the full application and one for just the services. We need
different network configurations for both.

RISDEV-5805
andreasphil and others added 13 commits January 7, 2025 14:30
To fix sonar warning, removing is not possible as regexes in the
get-mapping need to be assigned to a name

RISDEV-5805
- Added `useGetUserName` service to fetch logged-in user's name
- Replaced the logout button with a `RouterLink`
- Updated the navbar layout to display user details and the logout link

RISDEV-5805
@VictorDelCampo VictorDelCampo merged commit caff328 into main Jan 14, 2025
26 checks passed
@VictorDelCampo VictorDelCampo deleted the RISDEV-5805_spring_security_oauth2 branch January 14, 2025 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge For sharing prototypes or ideas that are not intended for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants