Support for access token authorization#280
Closed
pleasant-menlo wants to merge 3 commits intoIMAP-Science-Operations-Center:mainfrom
Closed
Support for access token authorization#280pleasant-menlo wants to merge 3 commits intoIMAP-Science-Operations-Center:mainfrom
pleasant-menlo wants to merge 3 commits intoIMAP-Science-Operations-Center:mainfrom
Conversation
… requests. -Giovanni and George
-Giovanni and George
- Sebastian and Ethan
greglucas
reviewed
Oct 14, 2025
Comment on lines
+162
to
+176
| 1. Make a POST request to: `https://lasp-auth.colorado.edu/auth/realms/lasp/protocol` with the request Content-Type as `x-www-form-urlencoded` and body: | ||
| ``` | ||
| client_id: imap-sdc | ||
| grant_type: password | ||
| username: {{Your LASP galaxy username}} | ||
| password: {{Your LASP galaxy password}} | ||
| ``` | ||
|
|
||
| 2. This should return a JSON response that contains an access token that is valid for 5 minutes. It will also contain a longer-lived refresh token that can be used to get more access tokens with a request to the same url as above, but the following body: | ||
|
|
||
| ``` | ||
| client_id: imap-sdc | ||
| grant_type: refresh_token | ||
| refresh_token: {{Refresh Token}} | ||
| ``` |
Contributor
There was a problem hiding this comment.
This is an awesome write-up! Unfortunately, I did have a request from our web team to not overly publicize the token endpoints. Could we move this content into the Confluence Galaxy somewhere? I don't know where a good spot is... there was a recent "manuals heading" for releases here https://lasp.colorado.edu/galaxy/spaces/IMAP/pages/292754433/Manuals
| refresh_token: {{Refresh Token}} | ||
| ``` | ||
|
|
||
| To use an access token with imap-data-access you can set the following environment variables: |
Contributor
There was a problem hiding this comment.
Keep this section, I think this is the important piece for users.
Suggested change
| To use an access token with imap-data-access you can set the following environment variables: | |
| To use an access token with imap-data-access you can set the following environment variables (note the `/authorized` trailing path): |
Merged
Contributor
|
These commits and the other documentation fix I pushed were merged in #280, so this should be taken care of now. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added support for using an access token for authorization when making requests.
-Giovanni and George