-
-
Notifications
You must be signed in to change notification settings - Fork 329
[16.0] [ADD] auth_partner, fastapi_auth_partner #456
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
base: 16.0
Are you sure you want to change the base?
[16.0] [ADD] auth_partner, fastapi_auth_partner #456
Conversation
517d033
to
e0a8c37
Compare
29ea34d
to
cdd4f0d
Compare
3ba0b8c
to
b71a156
Compare
52b4816
to
cdc1980
Compare
cdc1980
to
34236ab
Compare
…inheritance (checking anon partner for instance)
|
||
def _get_app_dependencies_overrides(self): | ||
res = super()._get_app_dependencies_overrides() | ||
if self.app == "portal": |
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.
if self.app == "portal": | |
if self.app == "myapp": |
token=self._generate_set_password_token(), | ||
) | ||
|
||
def _set_password(self, directory, token, password): |
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.
Can you add some comment here, (or in the decode_token method ?) regarding the key_salt ?
I know that you add this logic to make the token usable only one (as the function depend on the encrypted password)
But new contributor need help to understand this logic ?
Thanks
@paradoxxxzero Can you take into account the last comments so we can move forward with your proposal. |
This PR superseeds #404 and implements the separation between a base module
auth_partner
and the fastapi implementationfastapi_auth_partner
.This PR also introduces a stateless token for password reset, email validation and impersonation and some fixes and minor improvements.
This is still in testing, hence the draft status