dispatch icon indicating copy to clipboard operation
dispatch copied to clipboard

Okta integration blank page

Open csetarun2 opened this issue 4 years ago • 5 comments

I have configured okta and when I browser disptach url its redirecting to my okta sso after entering details its showing blank page, any thoughts on this ?

I could able to integrate using above steps, when I open url its redirecting to okta , once I have enter credentials it logged in, but its showing blank page always

I have added below env varibales in my .env file

DISPATCH_AUTHENTICATION_PROVIDER_SLUG=dispatch-auth-provider-pkce DISPATCH_JWT_AUDIENCE=0oaxxxxxxxx DISPATCH_PKCE_DONT_VERIFY_AT_HASH=true DISPATCH_AUTHENTICATION_PROVIDER_PKCE_JWKS=https://trial-2372xxx.okta.com/oauth2/v1/keys VUE_APP_DISPATCH_AUTHENTICATION_PROVIDER_SLUG=dispatch-auth-provider-pkce VUE_APP_DISPATCH_OPEN_ID_CONNECT_URL=trial-237xxx.okta.com VUE_APP_DISPATCH_CLIENT_ID=0oaxxxxxxx VUE_APP_DISPATCH_AUTHENTICATION_PROVIDER_PKCE_CLIENT_ID=0oa2rprxxxxxxxxxxx VUE_APP_DISPATCH_AUTHENTICATION_PROVIDER_PKCE_OPEN_ID_CONNECT_URL=https://trial-237xxxx.okta.com/ VUE_APP_DISPATCH_AUTHENTICATION_PROVIDER_USE_ID_TOKEN=true DISPATCH_UI_URL=http://34.68.139.77:8000/ DISPATCH_JWT_EMAIL_OVERRIDE=0oa2rprxxxxxx

image image image image image

? & where should we give permission to users since its not local users. ex: [email protected] should get admin access to default project, [email protected] should get read access to default organization & project ? How can we achieve this

csetarun2 avatar Nov 14 '22 13:11 csetarun2

Regarding your server error. I would double-check your JWKS endpoint here: DISPATCH_AUTHENTICATION_PROVIDER_PKCE_JWKS=https://trial-2372xxx.okta.com/oauth2/v1/keys

Judging by the documentation (https://developer.okta.com/docs/reference/api/oidc/#response-example) it should return JSON with valid kid (which is what our code assumes) there could be a configuration error or maybe the URL is just wrong.

Once a user logs in, they will have a user created for them with default permissions. If you wish to modify these permissions you can do so via the UI by navigating to Settings > Members and editing their member.

To establish the "first admin" problem we typically recommend logging in and then elevating yourself to be admin via the cli command:

dispatch ❯ dispatch user update --help
Usage: dispatch user update [OPTIONS] EMAIL

  Updates a user's roles.

Options:
  -o, --organization TEXT         Organization to set role for.  [required]
  -r, --role [Owner|Manager|Admin|Member]
                                  Role to be assigned to the user.  [required]
  --help                          Show this message and exit.

kevgliss avatar Nov 16 '22 17:11 kevgliss

@kevgliss I can able to get the key value, kid value was here https://trial-2372159-admin.okta.com/oauth2/v1/keys image

csetarun2 avatar Nov 17 '22 11:11 csetarun2

Are you able to inspect the authorization header value being sent? Is should be a base64encoded string that has a 'kid' in there.

https://github.com/Netflix/dispatch/blob/master/src/dispatch/plugins/dispatch_core/plugin.py#L98

kevgliss avatar Nov 17 '22 17:11 kevgliss

@kevgliss how to check the above one (authorization value), do I need to add some print in py file

image

csetarun2 avatar Nov 22 '22 15:11 csetarun2

Thanks @kevgliss , I could able to integrate okta in dispatch , added steps in https://github.com/Netflix/dispatch/issues/1597

csetarun2 avatar Nov 26 '22 07:11 csetarun2