Skip to content

Commit ca27823

Browse files
committed
Regenerate client_access_key.py. fix #29
1 parent fbdf604 commit ca27823

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
},
1414
"cSpell.words": [
1515
"conint",
16+
"conlist",
1617
"eddsa",
1718
"Permissioned",
1819
"pydantic"

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This is the changelog for [Authress SDK](readme.md).
1616
* Support additionally pydantic v2 dependencies. Support for v1 will be removed in a future version.
1717
* Prevent unnecessary extra trailing slashes in domain name.
1818
* Add support for the `generateUserLoginUrl` from the ServiceClientTokenProvider.
19+
* [Breaking] Removed client_id from ClientAccessKey.py model, because it does not contain a clientId when fetching client data.
1920

2021
## 2.0 ##
2122
* Add support for users and groups at the statement level of access records.

authress/models/client_access_key.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,11 @@ class ClientAccessKey(BaseModel):
3030
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
3131
"""
3232
key_id: Optional[StrictStr] = Field(default=None, alias="keyId", description="The unique ID of the client.")
33-
client_id: StrictStr = Field(default=..., alias="clientId", description="The unique ID of the client.")
3433
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.")
3534
generation_date: Optional[datetime] = Field(default=None, alias="generationDate")
3635
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.")
3736
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.")
38-
__properties = ["keyId", "clientId", "publicKey", "generationDate", "clientSecret", "accessKey"]
37+
__properties = ["keyId", "publicKey", "generationDate", "clientSecret", "accessKey"]
3938

4039
@validator('public_key')
4140
def public_key_validate_regular_expression(cls, value):

0 commit comments

Comments
 (0)