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

Update CHT login page to have button for redirecting to OIDC provider #9762

Open
jkuester opened this issue Jan 29, 2025 · 0 comments
Open
Labels
Type: Feature Add something new

Comments

@jkuester
Copy link
Contributor

jkuester commented Jan 29, 2025

  • When an OIDC provider is configured for a CHT instance, the logic page should show a button to allow the user to "Login with SSO". Selecting this button should cause the user to be re-directed to the SSO login page.
  • Get the redirect URL from openid-client (might be the buildAuthorizationUrl function?)
    • Consider making an oidc service in the API to manage the openid-client functionality
    • The client_secret for communicating with the OIDC provider should be stored/loaded as a CHT credentials value. See the outbound push password_key functionality for an example of how to do this.
  • When a user visits /medic/login, the renderLogin function in api/src/controllers/login.js should serve the login page with the redirect button enabled/disabled based on config.
  • Can add integration test(s) for the login controller
    • For the integration tests, I think we will have to consider if we need to spin up an OIDC provider, or if we can just create a fake one...
@jkuester jkuester added the Type: Feature Add something new label Jan 29, 2025
@jkuester jkuester changed the title Update API login controller to redirect to OIDC provider when one is configured Update CHT login page to have button for redirecting to OIDC provider Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Add something new
Projects
None yet
Development

No branches or pull requests

1 participant