Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

help with scope setting for okta #655

@sciphilo

Description

@sciphilo

Are there any examples of this working with Okta ?
I have managed to get part way there, but it moans about scopes:

'error redeeming code missing email'

./oauth2_proxy --upstream=http://localhost:9999/ -client-id=XXX -client-secret=ZZZ -cookie-secret=YYY -email-domain=ZZZ.com 
-set-xauthrequest
 -login-url=https://dev-XXX.oktapreview.com/oauth2/default/v1/authorize 
-profile-url=https://dev-XXX.oktapreview.com/oauth2/default/v1/userinfo 
 -redirect-url=https://MYPLACE.com   
-provider okta -redirect-url=https://MYPLACE.com/oauth2/callback  -validate-url=https://dev-XXX.oktapreview.com/oauth2/default/v1/token -redeem-url=https://dev-XXX.oktapreview.com/oauth2/default/v1/token -scope openid

I have this running behind nginx.

I think the issue is passing it : openid email profile

in the -scope, but I am not sure how to do this.
I've tried, commas, quotes etc.

Any ideas welcome !

(I'm using the pre-built version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions