Getting this error in the logs on the front-end po...
# troubleshoot
w
Getting this error in the logs on the front-end pod every time someone tries to login with SSO, though nothing has changed on our end as far as I know I don't see any other logs happening that look like they're triggered from login attempts Anyone got a clue what "invalid client" suddenly appearing could mean?
Copy code
2023-05-02 12:59:28,433 [application-akka.actor.default-dispatcher-10] ERROR controllers.SsoCallbackController - Caught exception while attempting to handle SSO callback! It's likely that SSO integration is mis-configured.
java.util.concurrent.CompletionException: org.pac4j.core.exception.TechnicalException: Bad token response, error=invalid_client
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
        at play.core.j.HttpExecutionContext.$anonfun$execute$1(HttpExecutionContext.scala:64)
        at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:49)
        at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(ForkJoinExecutorConfigurator.scala:48)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: org.pac4j.core.exception.TechnicalException: Bad token response, error=invalid_client
        at auth.sso.oidc.custom.CustomOidcAuthenticator.validate(CustomOidcAuthenticator.java:162)
        at auth.sso.oidc.custom.CustomOidcAuthenticator.validate(CustomOidcAuthenticator.java:41)
        at org.pac4j.core.client.BaseClient.lambda$retrieveCredentials$0(BaseClient.java:70)
        at java.base/java.util.Optional.ifPresent(Optional.java:183)
        at org.pac4j.core.client.BaseClient.retrieveCredentials(BaseClient.java:67)
        at org.pac4j.core.client.IndirectClient.getCredentials(IndirectClient.java:143)
        at org.pac4j.core.engine.DefaultCallbackLogic.perform(DefaultCallbackLogic.java:85)
        at auth.sso.oidc.OidcCallbackLogic.perform(OidcCallbackLogic.java:100)
        at controllers.SsoCallbackController$SsoCallbackLogic.perform(SsoCallbackController.java:91)
        at controllers.SsoCallbackController$SsoCallbackLogic.perform(SsoCallbackController.java:77)
        at org.pac4j.play.CallbackController.lambda$callback$0(CallbackController.java:54)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
        ... 8 common frames omitted
🔍 1
✅ 2
📖 1
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: ✅ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? ✅ button ✅ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? ✅ button Did you find a solution to your issue? ❌ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react ✅ to your original message to let us know!
w
never mind, the secret had expired
I'll leave this thread up for posterity as I didn't find anything like that by searching slack
one thing though: changing the secret did not cause a full helm redeploy to actually fix it, I had to
kubectl rollout restart deployment datahub-datahub-frontend
too
a
CC: @dazzling-yak-93039 - is that expected behavior?