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

bosh login in noninteractive mode fails with a 401 #1883

Closed
geofffranks opened this issue Jan 30, 2018 · 2 comments
Closed

bosh login in noninteractive mode fails with a 401 #1883

geofffranks opened this issue Jan 30, 2018 · 2 comments

Comments

@geofffranks
Copy link
Contributor

When I log in using BOSH_CLIENT and BOSH_CLIENT_SECRET set to the username/password of a bosh user, I get 401's from the UAA when trying to run commands like bosh vms.

However, using the same credentials, I'm able to authenticate successfully via an interactive bosh login (with no client/client_secret set). Looking at the UAA logs, in the first case, it is unable to find the user, but in the second case it is happy with it.

This appears to be related to the value of BOSH_CLIENT being a user, rather than a client in the UAA's perspective.

Can the login procedure for non-interactive be updated to match that of the interactive mode, so credentials used in one would work for the other?

@cppforlife
Copy link
Contributor

@geofffranks BOSH_CLIENT/SECRET are used with uaa clients (oauth client credential grant). interactive login uses regular uaa users (oauth password grant). regular uaa user login may include sso type questions send from uaa, so it cannot be done consistently in non-interactive mode, hence non-interactive mode only allows uaa clients.

@geofffranks
Copy link
Contributor Author

Ah. Didn’t know about the possiblility of extra login prompts. Thanks!

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

No branches or pull requests

2 participants