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

Implement oauth flow #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ChipWolf
Copy link

@ChipWolf ChipWolf commented Jun 7, 2019

Fixes #10

@ChipWolf
Copy link
Author

ChipWolf commented Jun 7, 2019

Thinking about this, it's probably worth testing on a Concourse deployment with only 1 auth provider.
This has been tested and definitely works when multiple auth providers are configured.

@ChipWolf ChipWolf force-pushed the master branch 2 times, most recently from 10f689c to 5f78dc7 Compare June 8, 2019 22:33
Copy link
Owner

@troykinsella troykinsella left a comment

Choose a reason for hiding this comment

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

Thanks so much for this. It's been on my mental TODO list for a very long time!

@@ -23,7 +42,7 @@ login() {
local team=$4
local insecure=$5
local tried=$6
local target=$7
local target=main
Copy link
Owner

Choose a reason for hiding this comment

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

I'd like to understand why we're restricted to the main team with this change.

Copy link
Author

@ChipWolf ChipWolf Jun 17, 2019

Choose a reason for hiding this comment

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

b/c that variable is never passed in, that was a quick hack to make it work
Also, that's not the team, it's just the name of the target which can be absolutely anything; no effect to the user

Choose a reason for hiding this comment

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

@troykinsella Can you review this when you get time, this change is required for concourse 5.2 or above.

Choose a reason for hiding this comment

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

any chance on merging?

Copy link
Owner

Choose a reason for hiding this comment

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

@ChipWolf I think the correct course of action here is to actually pass through the target, rather than putting a band-aid on the local target variable. This has been fixed on master, so please revert this change.

@troykinsella
Copy link
Owner

Concourse 5.x is now supported on master using basic auth, but I'd still like to incorporate this PR to support oauth. Thanks for the contribution! If you can refactor it to activate upon specifying oauth parameters on the source, which would be mutually exclusive with username and password, I'll merge it.

@troykinsella
Copy link
Owner

As fly can be downloaded anonymously, the oauth login implementation needs to move to the login function.

@ChipWolf
Copy link
Author

ChipWolf commented Sep 5, 2019

On it

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.

No more basic auth
4 participants