Skip to content

Commit

Permalink
Regenerate client_access_key.py. fix #29
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Aug 26, 2024
1 parent fbdf604 commit 87d7aad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"cSpell.words": [
"conint",
"conlist",
"eddsa",
"Permissioned",
"pydantic"
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 this property will might not contain the clientId when fetching client data.

## 2.0 ##
* Add support for users and groups at the statement level of access records.
Expand Down
3 changes: 1 addition & 2 deletions authress/models/client_access_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 87d7aad

Please sign in to comment.