gematik / ref-idp-server

Der Gematik IDP-Server dient zur Identifizierung von Versicherten und Leistungserbringenden Organisationen.
Apache License 2.0
22 stars 5 forks source link

Ability to add a custom clientId for authentication against the Authenticator application #10

Closed dotWee closed 1 year ago

dotWee commented 1 year ago

I'm aware of the ability to add the necessary ti-messenger related scopes to the idp-server's application.yml, yet I can't find any documentation/details on how to add a clientId to the idp-server to authenticate for.

Digging through the source code and debugging the incoming requests (like following the clientId lookup) did not help (but maybe I missed something?).

Is there a way to add a custom clientId for local development?

(Maybe @RStaeber can point me in the right direction)

RStaeber commented 1 year ago

Hi Lukas, the idp-server's application.yaml (https://github.com/gematik/ref-idp-server/blob/master/idp-server/src/main/resources/application.yml) has a section "registeredClient". Here you can add clients by adding an entry of the form:

<clientId>:
   redirectUri: <redirectUri>
   returnSsoToken: true or false

Just replace <clientId> and <redirectUri> with your own client_id and redirect_uri and everything should work.