Open maricavor opened 4 months ago
It's not only the authorization_code_grant_access_token_lifespan
affected, but also all other lifespan attributes (authorization_code_grant_id_token_lifespan
, authorization_code_grant_refresh_token_lifespan
, client_credentials_grant_access_token_lifespan
, ...).
Preflight checklist
Ory Network Project
No response
Describe the bug
Please revert back custom attribute writer methods for OAuth2Client. If records already exist cannot update and recieve ArgumentError: authorization_code_grant_access_token_lifespan cannot be nil. Those attributes are optional and new implementation is wrong when they are nil:
The correct implementation from version 2.2.0:
Reproducing the bug
Make Api request set_o_auth2_client for an existing record
Relevant log output
No response
Relevant configuration
No response
Version
2.2.1
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Docker
Additional Context
No response