django-oidc-provider/oidc_provider/tests/cases
Andy Clayton b1e994aa7e Fix token introspection "aud" and "client_id" response
Based on the OAuth 2.0 Token Introspection spec the "aud" field should
be based on the token. Previously "aud" was populated with the id of the
client making the introspection request which seems wrong. This changes
the endpoint to return the value from the token.

The "client_id" field is then changed to return the client id for the
client that originally requested the token rather than returning the
"aud" value from the token.

From the spec https://tools.ietf.org/html/rfc7662:

   client_id
      OPTIONAL.  Client identifier for the OAuth 2.0 client that
      requested this token.

   aud
      OPTIONAL.  Service-specific string identifier or list of string
      identifiers representing the intended audience for this token, as
      defined in JWT [RFC7519].
2018-07-04 09:53:30 -05:00
..
test_authorize_endpoint.py Fix PEP8. New migration. 2018-03-27 17:15:06 -03:00
test_claims.py Simplify test suit. 2018-03-22 11:45:56 -03:00
test_commands.py Simplify test suit. 2018-03-22 11:45:56 -03:00
test_end_session_endpoint.py Merge branch 'feature/token_retun_claims' of https://github.com/dhrp/django-oidc-provider into dhrp-feature/token_retun_claims 2018-04-10 18:41:38 -03:00
test_introspection_endpoint.py Fix token introspection "aud" and "client_id" response 2018-07-04 09:53:30 -05:00
test_middleware.py Merge branch 'v0.5.x' of https://github.com/juanifioren/django-oidc-provider into develop 2018-03-22 12:28:02 -03:00
test_provider_info_endpoint.py Simplify test suit. 2018-03-22 11:45:56 -03:00
test_settings.py fix settings to support falsy valued overrides 2018-07-03 13:17:10 -05:00
test_token_endpoint.py Remove scope param from OIDC_IDTOKEN_PROCESSING_HOOK 2018-05-31 10:23:58 +03:00
test_userinfo_endpoint.py Merge branch 'feature/token_retun_claims' of https://github.com/dhrp/django-oidc-provider into dhrp-feature/token_retun_claims 2018-04-10 18:41:38 -03:00
test_utils.py Merge branch 'feature/token_retun_claims' of https://github.com/dhrp/django-oidc-provider into dhrp-feature/token_retun_claims 2018-04-10 18:41:38 -03:00