argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.51k stars 5.33k forks source link

dex + okta login disaplay "User session error. #16686

Open shaojielinux opened 9 months ago

shaojielinux commented 9 months ago

describe:

  1. When I log in from the OKTA page, it will prompt "User Session Error" and the browser address bar will remain in the“ https://xxx.xxx.xxx.xx/api/dex/callback This address, meet login1. png
  2. But when I manually enter the domain name of argocd in the browser and click OK to log in, I will successfully log in, such as login2. png and login3. png login1 login2 login3

dex.config: dex.config: | logger: level: debug format: json connectors:

GitHub example

- type: saml
  id: okta
  name: Okta
  config:
    ssoURL: https://test.test.okta.com/app/uraargo_1/exka4zVPtGm697/sso/saml
    caData: |
      adsfasdfadsfasdfs
    usernameAttr: email
    emailAttr: email
    groupsAttr: group

exec.enabled: "false" server.rbac.log.enforce.enable: "false" timeout.hard.reconciliation: 0s timeout.reconciliation: 180s url: https://xxx.xxx.xx.xxx

shaojielinux commented 9 months ago

The problem that has been bothering me for a week, please help me check. Thank you

todaywasawesome commented 9 months ago

@shaojielinux Could you share logs from dex?

oleksandr-gubchenko commented 7 months ago

same issue here, the only errors that I see in dex logs are:

time="2024-02-06T09:07:58Z" level=error msg="Invalid 'state' parameter provided: not found"
time="2024-02-08T16:14:59Z" level=error msg="Failed to parse authorization request: Unregistered redirect_uri (\"\")."
oleksandr-gubchenko commented 7 months ago

this may be the issue: https://github.com/dexidp/dex/pull/1514 https://github.com/dexidp/dex/pull/3250