forked from Github-Mirrors/canaille
fix: correctly set up Client audience during OIDC dynamic registration
This commit is contained in:
parent
0d4174de43
commit
521ed75f18
3 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on `Keep a Changelog <https://keepachangelog.com/en/1.0.0/>`_,
|
||||
and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0.html>`_.
|
||||
|
||||
Fixed
|
||||
*****
|
||||
|
||||
- Correctly set up Client audience during OIDC dynamic registration.
|
||||
|
||||
[0.0.40] - 2023-12-22
|
||||
=====================
|
||||
|
||||
|
|
|
@ -400,6 +400,7 @@ class ClientRegistrationEndpoint(ClientManagementMixin, _ClientRegistrationEndpo
|
|||
client = models.Client(
|
||||
**self.client_convert_data(**client_info, **client_metadata)
|
||||
)
|
||||
client.audience = [client]
|
||||
client.save()
|
||||
return client
|
||||
|
||||
|
|
|
@ -56,6 +56,7 @@ def test_client_registration_with_authentication_static_token(
|
|||
assert client.token_endpoint_auth_method == "client_secret_basic"
|
||||
assert client.logo_uri == "https://client.example.org/logo.webp"
|
||||
assert client.jwks_uri == "https://client.example.org/my_public_keys.jwks"
|
||||
assert client in client.audience
|
||||
client.delete()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue