Skip to content

Commit

Permalink
Merge pull request #614 from azmeuk/rfc7523
Browse files Browse the repository at this point in the history
rfc7523 documentation improvements
  • Loading branch information
lepture authored Jan 5, 2024
2 parents 4a41288 + 569cb4d commit c8f154f
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit c8f154f

Please sign in to comment.