You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added support for using an access token for authorization when making requests.
-Giovanni and George
* MNT: Automatically add /api-key or /authorized as necessary
We can detect when different routes should be hit, so we can
automatically handle this for the user. This makes it so that
a user doesn't need to set the URL differently based on whether
they want to hit an authorized endpoint or not.
---------
Co-authored-by: Harrison <pleasant@menloinnovations.com>
An alternative to using an API key to access protected data is using an access token provided by LASP's authentication server. LASP's authentication uses [keycloak authentication](https://www.keycloak.org/documentation).
158
+
159
+
To use an access token with imap-data-access you can set the following environment variable:
160
+
161
+
```dotenv
162
+
IMAP_ACCESS_TOKEN={{Access token from LASP auth server}}
163
+
```
164
+
165
+
Any queries or downloads made with imap-data-access will now use these credentials.
0 commit comments