From ca278232cbff496f974371ed3aa8d001b200e84a Mon Sep 17 00:00:00 2001 From: Warren Parad Date: Mon, 26 Aug 2024 18:22:58 +0200 Subject: [PATCH] Regenerate client_access_key.py. fix #29 --- .vscode/settings.json | 1 + CHANGELOG.md | 1 + authress/models/client_access_key.py | 3 +-- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2accffb..14b94cc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -13,6 +13,7 @@ }, "cSpell.words": [ "conint", + "conlist", "eddsa", "Permissioned", "pydantic" diff --git a/CHANGELOG.md b/CHANGELOG.md index dc49a60..fe1c28c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ This is the changelog for [Authress SDK](readme.md). * Support additionally pydantic v2 dependencies. Support for v1 will be removed in a future version. * Prevent unnecessary extra trailing slashes in domain name. * Add support for the `generateUserLoginUrl` from the ServiceClientTokenProvider. +* [Breaking] Removed client_id from ClientAccessKey.py model, because it does not contain a clientId when fetching client data. ## 2.0 ## * Add support for users and groups at the statement level of access records. diff --git a/authress/models/client_access_key.py b/authress/models/client_access_key.py index a078e88..be64f35 100644 --- a/authress/models/client_access_key.py +++ b/authress/models/client_access_key.py @@ -30,12 +30,11 @@ class ClientAccessKey(BaseModel): A client access key configuration. The configuration contains information about the key. On first creation the configuration also contains the raw `clientSecret` and `accessKey` for use with OAuth and the Authress SDKs. # noqa: E501 """ key_id: Optional[StrictStr] = Field(default=None, alias="keyId", description="The unique ID of the client.") - client_id: StrictStr = Field(default=..., alias="clientId", description="The unique ID of the client.") public_key: Optional[constr(strict=True, max_length=256, min_length=0)] = Field(default=None, alias="publicKey", description="Specify a public key on access key creation to bring your own private key. When left blank, Authress will automatically generate a private and public key pair and then return the private key as part of the request. This property holds the public key.") generation_date: Optional[datetime] = Field(default=None, alias="generationDate") client_secret: Optional[StrictStr] = Field(default=None, alias="clientSecret", description="The unencoded OAuth client secret used with the OAuth endpoints to request a JWT using the `client_credentials` grant type. Pass the clientId and the clientSecret to the documented /tokens endpoint.") access_key: Optional[StrictStr] = Field(default=None, alias="accessKey", description="An encoded access key which contains identifying information for client access token creation. For direct use with the Authress SDKs. This private access key must be saved on first creation as it is discarded afterwards. Authress only saves the corresponding public key to verify the private access key.") - __properties = ["keyId", "clientId", "publicKey", "generationDate", "clientSecret", "accessKey"] + __properties = ["keyId", "publicKey", "generationDate", "clientSecret", "accessKey"] @validator('public_key') def public_key_validate_regular_expression(cls, value):