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

Added API endpoints that allow users to delete themselves from Auth0 #201

Closed
wants to merge 2 commits into from

Conversation

dylanratcliffe
Copy link
Member

This is also related to https://github.com/overmindtech/frontend/issues/1198. It create API endpoints that will be implement on the api-server and allow users to delete their actual users, not just the Overmind account that backs them

@@ -118,9 +128,18 @@ message AdminCreateTokenRequest {
service ManagementService {
// Get the details of the account that this user belongs to
rpc GetAccount(GetAccountRequest) returns (GetAccountResponse);
// Deletes the user's account

// Deletes the user's account. If a user calls this and logs in again, they
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Deletes the user's account. If a user calls this and logs in again, they
// Deletes the user's account and all associated resources, including other users in this account. If a user calls this and logs in again, they

// everything Overmind has on them, they should use DeleteAccount to delete
// their Overmind account and all the data it contains, then call this to
// remove themselves from Auth0
rpc DeleteOwnUser(DeleteOwnUserRequest) returns (DeleteOwnUserResponse);
Copy link
Contributor

Choose a reason for hiding this comment

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

how is this different from RevokeInvite(self)?

@dylanratcliffe
Copy link
Member Author

Maybe I'm overthinking this. Maybe DeleteAccount should just delete the account in overmind, all the users that have that account (in overmind) and propagate that deletion to Auth0? I can't think of a reason why you'd want to do anything else. @DavidS-ovm thoughts?

@dylanratcliffe
Copy link
Member Author

Closing in favour of @DavidS-ovm's suggestion

@dylanratcliffe dylanratcliffe deleted the delete-users-too branch May 1, 2024 09:19
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