-
Notifications
You must be signed in to change notification settings - Fork 0
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
SIMPLYE-218 Passkey endpoints #18
Conversation
authorization is None | ||
or authorization.token is None | ||
or len(authorization.token) == 0 | ||
): |
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.
This could be just if not authorization or not authorization.token:
) = self.get_tokens(request.authorization) | ||
if isinstance(delegate_token, ProblemDetail): | ||
return delegate_token | ||
elif delegate_token == None: |
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.
could be elif not delegate_token
, also handling empty string.
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.
Just a couple small suggestions, otherwise looks good.
Description
Added endpoints to call "/passkey/register" endpoints at ekirjasto API on behalf of the enduser. Implementation was done so that it is easy to add more similar endpoints later.
Motivation and Context
The mobile client doesn't have ekirjasto token in usable form, "/passkey/register" endpoints requires those to authenticate requests.
See more at issue: SIMPLYE-218
How Has This Been Tested?
Checklist