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
When registering test client, api returns 0 in client_secret_expires_at.
If client_secret_expires_at is 0, then RegisterResponse object is created with variable clientSecretExpiresAt as null.
At TestModeScimsClient#triggerRegistrationIfNeededclientExpiration variable is set to response.getClientSecretExpiresAt().getTime() and gives NullPointerException.
Simple null check will create new registration request on every program run.
Maybe provide option to provide OpenID client details via constructor?
The text was updated successfully, but these errors were encountered:
Good catch @axandar . Formerly clients always had an expiration date in Gluu, so getClientSecretExpiresAt() never returned null. I adjusted to conform.
Likewise I added a new factory method so that developers can pass client ID/secret to avoid multiple registrations when testing.
When registering test client, api returns 0 in
client_secret_expires_at
.If
client_secret_expires_at
is 0, thenRegisterResponse
object is created with variable clientSecretExpiresAt as null.At
TestModeScimsClient#triggerRegistrationIfNeeded
clientExpiration
variable is set toresponse.getClientSecretExpiresAt().getTime()
and gives NullPointerException.Simple null check will create new registration request on every program run.
Maybe provide option to provide OpenID client details via constructor?
The text was updated successfully, but these errors were encountered: