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

easier way to logout #42

Closed
dandanxu opened this issue Oct 24, 2014 · 3 comments
Closed

easier way to logout #42

dandanxu opened this issue Oct 24, 2014 · 3 comments

Comments

@dandanxu
Copy link
Member

instead of having to type solvebio.cli.auth.logout('')
just typing: logout
should log the user out

@rocky
Copy link
Contributor

rocky commented Oct 24, 2014

The branch feature/add-sample-annotation-via-rest-client now adds something similar.

I've added logout(), whoami(), and login() functions. Note that because this is a real Python shell, entering in the shell a simple login will just return the Python method object.

We could do something like ipython does and add `%' in the front so that you can enter %login instead of login().

What do you think?

Also, right now, one might think that the login function would allow user name and password parameters as is the case in the Ruby client. That's not done yet either.

@davecap
Copy link
Member

davecap commented Oct 24, 2014

Side note: you can type solvebio logout from your shell and it'll log you out, just not within the "solvebio IPython shell".

@rocky
Copy link
Contributor

rocky commented Nov 3, 2014

This has been added to version 1.6.0. If this is acceptable, please close the issue.

@davecap davecap closed this as completed Nov 3, 2014
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

3 participants