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

ARC-1222: Bootstrap Relying Party OIDC Server #8

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

thomasrichner-oviva
Copy link
Contributor

@thomasrichner-oviva thomasrichner-oviva commented Feb 1, 2024

This implements a very basic OpenID Connect IDP. The idea is to just defer authentication to this standalone bit from Keycloak. OIDC is supported out of the box.

This will imply an additional thing to deploy, but we will need minimal changes to Keycloak!

This PR adds a very basic implementation that can complete the authentication, but does not ask for credentials and also does not further deal with the actual gesundheits ID federation.

Next up will be wiring in GesundheitsID.

Other open todos:

  • health endpoint
  • observability (metrics, tracing, error reporting)
  • (optional) better statefulness than in-memory maps

@thomasrichner-oviva thomasrichner-oviva force-pushed the feature/arc-1222 branch 3 times, most recently from 610118e to 695638c Compare February 1, 2024 19:34
Comment on lines +44 to +46
var baseUri = URI.create("https://t.oviva.io");
var validRedirectUris =
List.of(URI.create("https://idp-test.oviva.io/auth/realms/master/broker/oidc/endpoint"));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for now hardcoded, makes developing much faster

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add an explicit TODO comment in code? so it easier to fetch it again later

Copy link
Collaborator

@michelealbanese-oviva michelealbanese-oviva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general, but why do you prefer to not create a Keycloak extension instead? Wouldn't it just be a matter of adding the custom JAR into the Keycloak docker image afterwards?

Copy link

sonarcloud bot commented Feb 4, 2024

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

15 New issues
0 Security Hotspots
80.7% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@thomasrichner-oviva thomasrichner-oviva marked this pull request as ready for review February 5, 2024 09:41
Copy link
Collaborator

@michelealbanese-oviva michelealbanese-oviva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great job 🎉

Comment on lines +44 to +46
var baseUri = URI.create("https://t.oviva.io");
var validRedirectUris =
List.of(URI.create("https://idp-test.oviva.io/auth/realms/master/broker/oidc/endpoint"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add an explicit TODO comment in code? so it easier to fetch it again later

@thomasrichner-oviva thomasrichner-oviva merged commit 6bf89e9 into main Feb 5, 2024
7 checks passed
@thomasrichner-oviva thomasrichner-oviva deleted the feature/arc-1222 branch February 8, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants