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

UserPass login not automatically deriving account #2770

Closed
mlassnig opened this issue Jul 31, 2019 · 2 comments
Closed

UserPass login not automatically deriving account #2770

mlassnig opened this issue Jul 31, 2019 · 2 comments
Assignees

Comments

@mlassnig
Copy link
Contributor

Motivation

All three methods below should work equivalently:

[root@20920a55b4bc rucio]# rucio -S userpass -u asdf -pwd zxcv whoami
cannot get auth_token
2019-07-31 15:11:27,139 ERROR   Cannot authenticate.
Details: userpass authentication failed
[root@20920a55b4bc rucio]# RUCIO_ACCOUNT=mario rucio -S userpass -u asdf -pwd zxcv whoami
cannot get auth_token
2019-07-31 15:11:30,424 ERROR   Cannot authenticate.
Details: userpass authentication failed
[root@20920a55b4bc rucio]# rucio --account mario -S userpass -u asdf -pwd zxcv whoami
status     : ACTIVE
account    : mario
account_type : USER
created_at : 2019-07-31T14:38:57
updated_at : 2019-07-31T14:38:57
suspended_at : None
deleted_at : None
email      : None
@robbarnsley
Copy link
Contributor

I cannot seem to replicate this with the current version:

[root@rucio rucio]# rucio-admin account add rmb
[root@rucio rucio]# rucio-admin identity add --account rmb --type USERPASS --id 'test' --email test@test.com --password test

[root@rucio rucio]# export RUCIO_ACCOUNT="rmb"
[root@rucio rucio]# rucio -S userpass -u test -pwd test whoami
status     : ACTIVE
account    : rmb
account_type : USER
created_at : 2020-08-18T09:25:02
suspended_at : None
updated_at : 2020-08-18T09:25:02
deleted_at : None
email      : None

[root@rucio rucio]# RUCIO_ACCOUNT=rmb rucio -S userpass -u test -pwd test whoami
status     : ACTIVE
account    : rmb
account_type : USER
created_at : 2020-08-18T09:25:02
suspended_at : None
updated_at : 2020-08-18T09:25:02
deleted_at : None
email      : None

[root@rucio rucio]# rucio --account rmb -S userpass -u test -pwd test whoami
status     : ACTIVE
account    : rmb
account_type : USER
created_at : 2020-08-18T09:25:02
suspended_at : None
updated_at : 2020-08-18T09:25:02
deleted_at : None
email      : None

Removing the auth token after each gives the same result.

@mlassnig
Copy link
Contributor Author

Ok, this can be closed then. Thanks @robbarnsley !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants