...
In order to verify an OAuth client, contact synapseinfo@sagebase.orgSynapse Help detailing:
Your name
The ID of the client to be verified (see below on how to obtain the client ID)
A description of your application
...
If the 'userinfo_signed_response_alg': 'RS256'
option was included in the client registration, then the result will be returned as a signed JSON Web Token, otherwise a simple JSON object will be returned.
To make authenticated requests with the Synapse client:
In Python:
Code Block | ||
---|---|---|
| ||
import synapseclient
syn = synapseclient.Synapse()
syn.login(authToken=<access token>) |
In R:
Code Block | ||
---|---|---|
| ||
library(synapser)
synLogin(authToken=<access token>) |
Refresh Tokens
Access tokens last for 24 hours, after which the client must either repeat the authorization process or use the refresh token to get a new access token. To do the latter, send a request to the refresh token endpoint:
...
The services described here allow an OAuth client to manage tokens. A separate set of services allow the user to review and revoke refresh tokens that they have granted to an OAuth client. The details are given here. Include Page