Skip to content

Commit

Permalink
doc: minor rfc7523 example improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Jan 2, 2024
1 parent a7d68b4 commit 569cb4d
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 569cb4d

Please sign in to comment.