-
Notifications
You must be signed in to change notification settings - Fork 16
Validate client ID in DID Token. #87
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
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.
looks good just one comment
init_requests_client = RequestsClient(retries, timeout, backoff_factor) | ||
magic_admin.client_id = client_id or \ | ||
init_requests_client.request('get', self.v1_client_info).data['client_id'] |
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.
You can use the client already set 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.
It's scoped to the specific Resources :( I ran into issues trying to get it to work with the existing client so I ended up initializing my own.
Still need to test this thoroughly (build the library, install it, try making the calls) |
7b42f99
to
b946257
Compare
d93ea40
to
61de346
Compare
📦 Pull Request
[Provide a general summary of the pull request here.]
Validate
aud
field in DID Token by comparing it to client ID. Pull Client ID from Magic servers if not present.🗜 Versioning
(Check one!)
✅ Fixed Issues
🚨 Test instructions
[Describe any additional context required to test the PR/feature/bug fix.]
Tested:
CHANGELOG.md
Upcoming Changes
section ofCHANGELOG.md
with context related to this Pull Request.