-
Notifications
You must be signed in to change notification settings - Fork 976
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(identities): add a state to identities #1312
Conversation
Thank you for the contribution! I think what I meant in the original issue was more along the lines of adding a |
Would there be another state besides active and disabled? Having a date to know when the user was disabled is a good thing, it allows automatic cleanup and other things. We could have a |
|
c99087d
to
a4d43d6
Compare
Alright, I see the point. This should be more what you guys had in mind. It still needs tests, and I'm thinking about adding a PATCH method to the identities controller. What do you think? |
Sorry @thomasruiz for dropping the ball on this. Would you still be open to work on this or have you proceeded to other work? |
a4d43d6
to
b8c5a14
Compare
@aeneasr I updated most of the tests but there is still a problem: I don't see how to update the openapi specs to regenerate the SDKs. I added |
b8c5a14
to
182cecc
Compare
To regenerate the SDK run |
736a88a
to
50b301e
Compare
50b301e
to
6a29f7f
Compare
I think this is ready for review right? :) If so can you please mark it as ready for review? Thank you! :) |
There you go! I hope I didn't mess anything up :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Just have two small things but this is basically good to merge! Could you also add a small section on the new identity state to the docs? :)
6a29f7f
to
2336eec
Compare
🙄 circle ci has an outage.. |
🤣 |
Thank you so much, a job well done! :) |
Closes ory#598 Co-authored-by: hackerman <3372410+aeneasr@users.noreply.github.com>
Closes ory#598 Co-authored-by: hackerman <3372410+aeneasr@users.noreply.github.com>
Related issue
#598
Proposed changes
Add a
disabled_at
field in the identity model. If it is set, the account is disabled. Block session creation when the account is disabled.Checklist
vulnerability. If this pull request addresses a security. vulnerability, I
confirm that I got green light (please contact
security@ory.sh) from the maintainers to push
the changes.
works.
Further comments
This is draft just to make sure the implementation is correct. Tests and documentation are very much needed, but before going further, I'd rather have a validation from the maintainers.