Skip to content

Commit

Permalink
fix access token spelling as suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
lilioid committed Oct 9, 2023
1 parent 23f6d45 commit 9f9c9fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/simple_openid_connect/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ class JwtAccessToken(OpenidBaseModel):
.. note::
While the RFC defines some fields to be required, some vendors issue tokens that look they conform to the RFC
While the RFC defines some fields to be required, some vendors issue tokens that look like they conform to the RFC
but in fact do not because some required fields are missing.
To allow usage of these tokens even though they do not strictly conform to the RFC, almost all fields are marked
optional.
Expand Down Expand Up @@ -349,18 +349,18 @@ class Config:

def validate_extern(self, issuer: str) -> None:
"""
Validate this Access-Token with external data for consistency.
Validate this access token with external data for consistency.
:param issuer: The issuer that this token is supposed to originate from.
Should usually be :data:`ProviderMetadata.issuer`.
"""
# validate issuer
validate_that(
self.iss == issuer, "Access-Token was issued from unexpected issuer"
self.iss == issuer, "The access token was issued from unexpected issuer"
)

# validate expiry
validate_that(self.exp > time.time(), "The Access-Token is expired")
validate_that(self.exp > time.time(), "The access token is expired")


class UserinfoRequest(OpenidBaseModel):
Expand Down

0 comments on commit 9f9c9fd

Please sign in to comment.