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

'terminus cli cache-clear' appears to log me out #65

Closed
bwood opened this issue Jan 27, 2015 · 1 comment
Closed

'terminus cli cache-clear' appears to log me out #65

bwood opened this issue Jan 27, 2015 · 1 comment
Milestone

Comments

@bwood
Copy link
Contributor

bwood commented Jan 27, 2015

[bwood@mbp migration]$ terminus cli version
Terminus 0.3.4-beta

Test 1:

[bwood@mbp migration]$ terminus auth login
Your email address?: [email protected]
Your dashboard password (input will not be shown):
Logging in as [email protected]
Saving session data

        .+.
        .+?:
         .+??.
           ??? .
           +???.
      +?????????=.
      .???????????.
      .????????????.

     ########### ########
     ############.#######.
     ####### ####  .......
     ######## #### #######                50 41 4E 54 48 45 4F 4E
     #########.####.######        _____________  __  ________  ____  ______
     ######  ...                 /_  __/ __/ _ \/  |/  /  _/ |/ / / / / __/
     #######.??.##########        / / / _// , _/ /|_/ // //    / /_/ /\ \
     #######~+??.#########       /_/ /___/_/|_/_/  /_/___/_/|_/\____/___/
     ########.??..
     #########.??.#######.
     #########.+?? ######.
               .+?.
         .????????????.
           +??????????,
            .????++++++.
              ????.
              .???,
               .~??.
                 .??
                  .?,.
[bwood@mbp migration]$ terminus cli cache-clear
[bwood@mbp migration]$ terminus --json site organizations list --site=openberkeley-t02-0127-bw01
Error: Please login first with `terminus auth login`

Test 2:

[bwood@mbp migration]$ terminus auth login
Your email address?: [email protected]
Your dashboard password (input will not be shown):
Logging in as [email protected]
Saving session data

        .+.
        .+?:
         .+??.
           ??? .
           +???.
      +?????????=.
      .???????????.
      .????????????.

     ########### ########
     ############.#######.
     ####### ####  .......
     ######## #### #######                50 41 4E 54 48 45 4F 4E
     #########.####.######        _____________  __  ________  ____  ______
     ######  ...                 /_  __/ __/ _ \/  |/  /  _/ |/ / / / / __/
     #######.??.##########        / / / _// , _/ /|_/ // //    / /_/ /\ \
     #######~+??.#########       /_/ /___/_/|_/_/  /_/___/_/|_/\____/___/
     ########.??..
     #########.??.#######.
     #########.+?? ######.
               .+?.
         .????????????.
           +??????????,
            .????++++++.
              ????.
              .???,
               .~??.
                 .??
                  .?,.
[bwood@mbp migration]$ terminus --json site organizations list --site=openberkeley-t02-0127-bw
[
    {
        "label": "'UC Berkeley - Testing'",
        "name": "uc-berkeley-testing",
        "role": "team_member",
        "id": "430c1947-354f-459a-8755-f38293aef105"
    }
]
[bwood@mbp migration]$ terminus cli cache-clear
[bwood@mbp migration]$ terminus --json site organizations list --site=openberkeley-t02-0127-bw
Error: Please login first with `terminus auth login`
@bwood bwood changed the title 'terminus cli cache-clear` appears to log me out 'terminus cli cache-clear' appears to log me out Jan 27, 2015
@joshkoenig
Copy link
Member

I think this might be us being a little naive and not distinguishing the auth/session cache from the local site data cache. Should be an easy fix.

Thanks for bringing it to our attention!

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