-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #212 from descarteslabs/export
v0.8.0 Candidate
- Loading branch information
Showing
26 changed files
with
482 additions
and
2,171 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,6 @@ | |
from six.moves import input | ||
|
||
from descarteslabs.client.auth.auth import Auth, base64url_decode, makedirs_if_not_exists, DEFAULT_TOKEN_INFO_PATH | ||
from descarteslabs.client.services.metadata import Metadata | ||
from descarteslabs.client.version import __version__ | ||
|
||
|
||
|
@@ -53,20 +52,10 @@ def auth_handler(args): | |
|
||
# Get a fresh Auth token | ||
auth = Auth() | ||
keys = Metadata(auth=auth).keys() | ||
|
||
name = auth.payload['name'] | ||
groups = ', '.join(auth.payload['groups']) | ||
|
||
if len(keys): | ||
|
||
print('Welcome, %s!' % name) | ||
|
||
else: | ||
|
||
print('Welcome, %s! Your %s role(s) do not permit access to any imagery at this time.' % (name, groups)) | ||
print( | ||
'Contact [email protected] if you believe you received this message in error or have any questions.') # NOQA | ||
print('Welcome, %s!' % name) | ||
|
||
if args.command == 'token': | ||
print(auth.token) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. `_descarteslabs_client_auth` | ||
Authentication | ||
-------------- | ||
.. automodule:: descarteslabs.client.auth | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Exceptions | ||
---------- | ||
.. automodule:: descarteslabs.client.exceptions | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.