Skip to content

Commit

Permalink
fix typo in Endpoints.INSTROSPECTION (extra S)
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-pujol committed Sep 13, 2024
1 parent 9884a07 commit d739deb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions requests_oauth2client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class Endpoints(str, Enum):
AUTHORIZATION = "authorization_endpoint"
BACKCHANNEL_AUTHENTICATION = "backchannel_authentication_endpoint"
DEVICE_AUTHORIZATION = "device_authorization_endpoint"
INSTROSPECTION = "introspection_endpoint"
INTROSPECTION = "introspection_endpoint"
REVOCATION = "revocation_endpoint"
PUSHED_AUTHORIZATION_REQUEST = "pushed_authorization_request_endpoint"
JWKS = "jwks_uri"
Expand Down Expand Up @@ -1346,7 +1346,7 @@ def introspect_token(
data["token_type_hint"] = token_type_hint

return self._request(
Endpoints.INSTROSPECTION,
Endpoints.INTROSPECTION,
data=data,
auth=self.auth,
on_success=self.parse_introspection_response,
Expand Down Expand Up @@ -1697,7 +1697,7 @@ def from_discovery_endpoint(
**kwargs: additional keyword parameters to pass to OAuth2Client
Returns:
an OAuth2Client with endpoint initialised based on the obtained metadata
an `OAuth2Client` with endpoint initialised based on the obtained metadata
Raises:
InvalidParam: if neither `url` nor `issuer` are suitable urls
Expand All @@ -1710,7 +1710,7 @@ def from_discovery_endpoint(
client = OAuth2Client.from_discovery_endpoint(
issuer="https://myserver.net",
client_id="my_client_id,
client_secret="my_client_secret"
client_secret="my_client_secret",
)
```
Expand Down Expand Up @@ -1808,7 +1808,7 @@ def from_discovery_document(
raise InvalidDiscoveryDocument(msg, discovery)
authorization_endpoint = discovery.get(Endpoints.AUTHORIZATION)
revocation_endpoint = discovery.get(Endpoints.REVOCATION)
introspection_endpoint = discovery.get(Endpoints.INSTROSPECTION)
introspection_endpoint = discovery.get(Endpoints.INTROSPECTION)
userinfo_endpoint = discovery.get(Endpoints.USER_INFO)
jwks_uri = discovery.get(Endpoints.JWKS)
if jwks_uri is not None:
Expand Down

0 comments on commit d739deb

Please sign in to comment.