OIDC client takes multiple retries to refresh the token (reactive) #50373
Replies: 2 comments 32 replies
-
/cc @pedroigor (oidc), @sberyozkin (oidc) |
Beta Was this translation helpful? Give feedback.
-
@IvanPuntev Thanks for testing it, just adding
I don't think OIDC Client changes something at the 3rd attempt to get it working, I'll add a LOG debug support to log the request body and headers, similar to how Quarkus OIDC does it shortly, can you please register a custom Also CC @michalvavrik |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Regarding #44037
I'm using version 3.28.1 and I'm trying the new auto refresh token functionality when 401 is received. I've added and set quarkus.rest-client-oidc-filter.refresh-on-unauthorized property to true and when the token is revoked it takes 3 calls to refresh the token. First and second time i receive error response:
Is this proper behavior? Do I also need to add something else on my side like additional retry logic or this needs some improvement?
I'm using these properties:
quarkus.oidc-client.salesforce.auth-server-url=
quarkus.oidc-client.salesforce.client-id=
quarkus.oidc-client.salesforce.credentials.jwt.key=
quarkus.oidc-client.salesforce.credentials.jwt.audience=
quarkus.oidc-client.salesforce.credentials.jwt.subject=
quarkus.oidc-client.salesforce.credentials.jwt.issuer=
quarkus.oidc-client.salesforce.credentials.jwt.lifespan=3600
quarkus.oidc-client.salesforce.grant.type=jwt
quarkus.oidc-client.salesforce.credentials.jwt.assertion=true
quarkus.oidc-client.salesforce.token-path=/services/oauth2/token
quarkus.oidc-client.salesforce.discovery-enabled=false
quarkus.rest-client-oidc-filter.refresh-on-unauthorized=true
Beta Was this translation helpful? Give feedback.
All reactions