Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the oauth signup url as an option #161

Merged
merged 3 commits into from
Jul 23, 2019
Merged

Conversation

skylerto
Copy link
Contributor

@skylerto skylerto commented Jul 12, 2019

Adds support for the oauth_signup_url via the bldr.env.sample file.

I wasn't sure how to handle the other auth providers (azure-ad, okta, chef-automate) as users are managed at a different level then a straight forward signup, hence there are no examples in the bldr.env.sample.

Thinking how I would set this link if I were using one of the missing providers (azure-ad, okta, chef-automate) I would likely suggest a link to some type of on-boarding documentation.

Signed-off-by: skylerto [email protected]

Adds support for the oauth_signup_url via the bldr.env.sample file.

Signed-off-by: skylerto <[email protected]>
@eeyun
Copy link
Contributor

eeyun commented Jul 12, 2019

Ah nice, this is literally the work I started yesterday :) I'm 👍 to merging this, but to clarify - this doesn't yet resolve #131 because the plumbing in builder isn't there. I'll put my PR for builder up in a moment when i'm not on thumbs.

@skylerto
Copy link
Contributor Author

Fair enough, I removed the resolution! And sorry if I was stepping on toes! :(

@chefsalim
Copy link
Contributor

I'd hold off on merging this till we have a complete solution

@eeyun
Copy link
Contributor

eeyun commented Jul 12, 2019

Not at all @skylerto! Love that you hopped on it!!!

Copy link
Contributor

@eeyun eeyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now that the other PR is up, however, I did just notice you need to add another signup_url = "$OAUTH_SIGNUP_URL" at like 92 in the provision.sh script

@@ -89,6 +89,7 @@ provider = "$OAUTH_PROVIDER"
userinfo_url = "$OAUTH_USERINFO_URL"
token_url = "$OAUTH_TOKEN_URL"
redirect_url = "$OAUTH_REDIRECT_URL"
signup_url = "$OAUTH_SIGNUP_URL"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this line is NOT needed as we don't have a signup_url config in builder-api at all

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats correct. My apologies @skylerto last week after we dug into this a bit more we found this has no effect so you can remove it and then we're g2g!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, just pushed a revert!

@chefsalim
Copy link
Contributor

@skylerto Pls see my comment above

@chefsalim chefsalim merged commit bdb6b21 into habitat-sh:master Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants