Source
How to use authorization_code grant_type for complex Oauth environments
Here is an application where you specify the URL, the client_id, and client_secret. Then you can go to the URL "http://localhost:5000/gettoken" and it will send you to authenticate and then provide a JWT token.
SYSTEM$VERIFY_EXTERNAL_OAUTH_TOKEN
The function returns a JSON object stating the validation result with a reason. The query result should never display the token itself. For example, an invalid token should return a masked token in the result to ensure that sensitive…
snow spcs image-registry token
Retrieves a registry authentication token based on your current connection. Note that this token is specific to your current user and will not grant access to any repositories that your current user cannot access.