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

feat: support password resets from the api #3501

Merged
merged 4 commits into from Aug 3, 2023
Merged

Conversation

shreddedbacon
Copy link
Member

Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Add support to the API to allow new users trigger a password reset email. The lifespan is set for 12 hours (this could be configurable?). The password reset will also contain the redirect information to send the user back to the Lagoon UI. But an environment variable LAGOON_UI needs to be injected into the API deployment with the URL for the UI (eg. https://dashboard.amazeeio.cloud)

mutation addUser{
  addUser(input:{
    email: "user@example.com"
    resetPassword: true
  }){
    email
  }
}

Or perform a password reset action directly

mutation resetPassword{
  resetUserPassword(input:{
    user: {
      email: "user@example.com"
    }
  })
}

Closing issues

closes #2501

@shreddedbacon shreddedbacon marked this pull request as ready for review August 2, 2023 04:12
Copy link
Member

@tobybellwood tobybellwood left a comment

Choose a reason for hiding this comment

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

Tested and working as intended

@tobybellwood tobybellwood merged commit 7b5990b into main Aug 3, 2023
1 check passed
@tobybellwood tobybellwood deleted the password-resets branch August 3, 2023 11:31
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.

Lagoon add-user should trigger password reset request from Keycloak
2 participants