You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Make "expiration time" to be configurable in BoxDeveloperEditionAPIConnection #1114
Is your feature request related to a problem? Please describe.
For people with a bad internet connection, 30 seconds might be not enough to acquire a token.
As a workaround, we can increase max attempts but maybe increasing the count of an expiration time for claims would be more efficient.
Describe the solution you'd like
Frankly, I don't like BoxGlobalSettings with statics variables, but it might be the solution. (with the additional setter in BoxDeveloperEditionAPIConnection) the same thing as we have for maxRetryAttemps.
Describe alternatives you've considered
Increase the max retry attempts and cross your fingers.
Hi @ozhelezniak-talend,
I assume you using OAuth2 authentication type and you are referring to the expiration time of "short-lived authorization code" described here. If not please describe your issue with more details.
The expiration time of "short-lived authorization code" is defined in authentication server and it is not possible to change this setting by client (SDK). If this is a problem you can also try another authentication methods: JWT or Client Credentials Grant. @lukaszsocha2
Hi @ozhelezniak-talend,
now it is much more clear what you mean :). I will discuss the change with the team, but I believe we can make that configurable with the next release. I'll let you know what we decided. @lukaszsocha2
Activity
lukaszsocha2 commentedon Oct 14, 2022
Hi @ozhelezniak-talend,
I assume you using OAuth2 authentication type and you are referring to the expiration time of "short-lived authorization code" described here. If not please describe your issue with more details.
The expiration time of "short-lived authorization code" is defined in authentication server and it is not possible to change this setting by client (SDK). If this is a problem you can also try another authentication methods: JWT or Client Credentials Grant.
@lukaszsocha2
ozhelezniak-talend commentedon Oct 14, 2022
Hello @lukaszsocha2
Sorry for the lack of details.
I'm using JWT authentication method.
And when it tries to establish connection a bit deeper into stacktrace
it calls method
inside it contains those lines
where inside constructJWTAssertion you can find this hardcoded 30 seconds period
lukaszsocha2 commentedon Oct 14, 2022
Hi @ozhelezniak-talend,
now it is much more clear what you mean :). I will discuss the change with the team, but I believe we can make that configurable with the next release. I'll let you know what we decided.
@lukaszsocha2
lukaszsocha2 commentedon Oct 17, 2022
Hi,
we created internal ticket to address your request (SDK-2704). We will plan it and resolve as soon as our schedule will allow for it.
Best