Hi Team, I am configuring OAuth for Datahub. The f...
# all-things-deployment
c
Hi Team, I am configuring OAuth for Datahub. The frontend is routing to the SSO page but after authentication, its not redirecting back to frontend. I am setting this up in k8s. I used the extra env -
Copy code
extraEnvs: # []
  # - name: MY_ENVIRONMENT_VAR
  #   value: the_value_goes_here
  - name: AUTH_OIDC_ENABLED
    value: "true"
  - name: AUTH_OIDC_CLIENT_ID
    value: "****"
  - name: AUTH_OIDC_CLIENT_SECRET
    value: "***"
  - name: AUTH_OIDC_DISCOVERY_URI
    value: "https://***/v1/.well-known/openid-configuration"
  - name: AUTH_OIDC_BASE_URL
    value: "<https://localhost:9092>"
    # your-datahub-url
  - name: AUTH_OIDC_SCOPE
    value: "openid profile email groups"
After login, I end up here -
Copy code
<https://localhost:9092/callback/oidc?code=rl2nxdhcoasxpbwdw4na2gqwb&state=c56dbb3953>
āœ… 2
q
Hi Hemant!
IIRC, the address in AUTH_OIDC_BASE_URL should be your public address. So unless you're doing some local testing, it should be something like:
Copy code
- name: AUTH_OIDC_BASE_URL
    value: "<https://yourdatahub.yourdomain.com>"
c
Yes, I am doing a local testing by port-forwarding the service
@quiet-honey-85822 There was one error in conf -
Copy code
- name: AUTH_OIDC_BASE_URL
    value: "<https://localhost:9092>"
to (https to http )
Copy code
- name: AUTH_OIDC_BASE_URL
    value: "<http://localhost:9092>"
The error still exists
9092 🫣
q
But it says "connection refused" šŸ¤”
Is the port forwarding working?
c
I am redeploying now. Will test it nd confirm
@quiet-honey-85822 Its working. There were two changes - • https to http as its a port -forward • use the right port 9002 instead of 9092
q
Oooops
A small number error šŸ˜›
c
yeah šŸ™‚
b
Glad you got this working!!