strmprivacy / cli

This is the STRM Privacy Command Line Interface, to define and manage your privacy streams, data schemas, event contracts and much more.
https://strmprivacy.io
Apache License 2.0
6 stars 2 forks source link

fix(strm-2058): do not resolve project if command is auth #129

Closed bobvandenhoogen closed 1 year ago

linear[bot] commented 1 year ago
STRM-2058 When a user is not in a project and you don't have admin rights, you're stuck

```  strm-prod  base  ~  strm auth login Follow the login flow in your browser, which is opened automatically. If not, open the following URL to complete the login: https://accounts.strmprivacy.io/auth/realms/users/protocol/openid-connect/auth?client_id=cli&prompt=login&redirect_uri=http%3A%2F%2Flocalhost%3A10000&response_type=code&scope=offline_access+email&state=CQXYYbjA_OD5qDflaUKG2rn0AATDHgmtQL8EJAljpiI You are now logged in as [bob+rbac@strmprivacy.io].  strm-prod  base  ~  strm list data-connectors you do not have access to any projects; create a project first, or ask to be granted access to one  strm-prod  base  ~  strm auth login you do not have access to any projects; create a project first, or ask to be granted access to one  strm-prod  base  ~  strm auth login you do not have access to any projects; create a project first, or ask to be granted access to one  strm-prod  base  ~  strm create project dummy-project you do not have access to any projects; create a project first, or ask to be granted access to one ``` You have to manually remove the logged-in session from `~/.config` . Only then you can perform a new `strm auth login`

strmprivacy-io commented 1 year ago

:tada: This PR is included in version 3.1.1 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: