OsiriX-Foundation / kheops

20 stars 11 forks source link

Initiating Login from a Third Party #33

Closed spalte closed 2 years ago

spalte commented 2 years ago

Implement OIDC Initiating Login from a Third Party (https://openid.net/specs/openid-connect-core-1_0.html#ThirdPartyInitiatedLogin)

Concretely this means implementing a /login route in KHEOPS UI that takes three query parameters, iss, login_hint, and target_link_uri. When the route is called first make sure that iss matches KHEOPS_OIDC_PROVIDER. If it does, trigger authenticateOidc with:

const payload = {
    redirectPath: $target_link_uri,
    login_hint: $login_hint
};