-
Notifications
You must be signed in to change notification settings - Fork 0
ENG-1456: add jwt subject support #48
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
Conversation
| authorized_users.append( | ||
| AuthorizedUser( | ||
| data.get("fullName"), data.get("email"), data.get("phone") | ||
| data.get("fullName"), data.get("email"), data.get("phone"), data.get("jwtSubject") |
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.
👍
| authorized_user = {"fullName": obj.full_name, "email": obj.email, "phone": obj.phone} | ||
| if obj.jwt_subject is not None: | ||
| authorized_user["jwtSubject"] = obj.jwt_subject | ||
| return authorized_user |
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.
🎈
| class CreateCustomerToken(UnitRequest): | ||
| def __init__(self, customer_id: str, scope: str, verification_token: Optional[str] = None, | ||
| verification_code: Optional[str] = None, expires_in: Optional[int] = None): | ||
| verification_code: Optional[str] = None, expires_in: Optional[int] = None, jwt_token: Optional[str] = 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.
💪
avesk
left a comment
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.
lgtm!
https://linear.app/trusspayments/issue/ENG-1456/unit-create-customer-token-via-jwt