Skip to content
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

rfc7523 documentation improvements #614

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/specs/rfc7523.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,11 @@ methods in order to use it. Here is an example::
# if client has `jwks` column
key_set = JsonWebKey.import_key_set(client.jwks)

return key_set.find_by_kid(headers['kid'])

def authenticate_user(self, subject):
# when assertion contains `sub` value, if this `sub` is email
return User.objects.get(email=sub)
return User.objects.get(email=subject)

def has_granted_permission(self, client, user):
# check if the client has access to user's resource.
Expand Down
Loading