B612-Asteroid-Institute / adam_home

ADAM python client and notebooks
MIT License
13 stars 8 forks source link

Migrate API to use revised authentication #118

Closed carise closed 3 years ago

carise commented 3 years ago

Instead of attaching a token to query parameters or the request body, put it in the Authorization headers. Also the token format will change -- the ADAM client will expect the refresh token, store it, and send an access token for requests to the ADAM API. When the access token expires, the ADAM client should automatically request for the access token to be refreshed.

Documentation has been generated in #123

github-actions[bot] commented 3 years ago

Locust summary

Git references

Initial: 26d75d4
Terminal: f649395

adam/rest_proxy.py
Changes:
adam/service.py
Changes:
adam/auth.py
Changes:
adam/tests/auth_test.py
Changes:
adam/tests/rest_proxy_test.py
Changes:
adam/config_manager.py
Changes:
adam/group.py
Changes:
adam/project.py
Changes:
adam/permission.py
Changes:
adam/__main__.py
Changes:
  • Name: login
    Type: function
    Changed lines: 10
    Total lines: 42
    Changes:
adam/adam_objects.py
Changes:
adam/batches.py
Changes:
adam/propagator_config.py
Changes:
adam/errors.py
Changes:
github-actions[bot] commented 3 years ago

Locust summary

Git references

Initial: 26d75d4
Terminal: f648898

adam/rest_proxy.py
Changes:
adam/service.py
Changes:
adam/auth.py
Changes:
adam/tests/auth_test.py
Changes:
adam/tests/rest_proxy_test.py
Changes:
adam/config_manager.py
Changes:
adam/group.py
Changes:
adam/project.py
Changes:
adam/permission.py
Changes:
adam/__main__.py
Changes:
  • Name: login
    Type: function
    Changed lines: 10
    Total lines: 42
    Changes:
adam/adam_objects.py
Changes:
adam/batches.py
Changes:
adam/propagator_config.py
Changes:
adam/errors.py
Changes: