Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

and a plain text body:  "The token provided was invalid or expired."

API for Terms of Use

All authenticated requests to the Synapse repository service must be by a user who has signed the Synapse Terms of Use.

Get the Terms of Use

Code Block
GET https://auth-staging.sagebase.org/auth/v1/termsOfUse

Successful Response:

Code Block
HTTP/1.1 200 OK

<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns:mv="http://macVmlSchemaUri" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta name=Title content="Synapse Terms and Conditions of Use">
<meta name=Keywords content="">
...
</html>

 

Check whether the authenticated user agrees to the Terms of Use

Code Block
GET https://auth-staging.sagebase.org/auth/v1/termsOfUseAgreement

Successful Response:

Code Block
HTTP/1.1 200 OK
Content-Type: application/json
{
    "agrees": "false"
}
 

Set whether the authenticated user agrees to the Terms of Use

Code Block
POST https://auth-staging.sagebase.org/auth/v1/termsOfUseAgreement
{"agrees": "true"}

Successful Response:

Code Block
HTTP/1.1 201 Created

API for Authorization

Default groups

...

Note:  Private fields (e.g. "rStudioUrl") are omitted unless the requestor is the profile owner or an administrator.

 

Code Block
{
	"firstName":"Jane",
	"lastName":"Smith",
	"displayName":"Jane Smith",
	"ownerId":"1001",
	"uri":"/userProfile",
	"etag":"0"
} 

...