Title: SciTokens REST API Demo
order: Notebook, demo.scitokens.org, curl, API
Notebook -> demo.scitokens.org: request AT(get:/example post:/example put:/example delete:/example)
demo.scitokens.org -> Notebook: AT(get:/example post:/example put:/example delete:/example)
Notebook -> curl: AT
curl -> API: POST [AT] /example/test1 [data]
group: SciTokens Python API does this automatically
note API: Need public key to verify AT
API -> demo.scitokens.org: GET /.well-known/openid-configuration
demo.scitokens.org -> API: HTTP/1.1 200 OK [JSON]
API -> demo.scitokens.org: GET /oauth2/certs
demo.scitokens.org -> API: HTTP/1.1 200 OK [JSON]
note API: Save public key
end
note API: Verify AT
API -> curl: HTTP/1.1 200 OK
curl -> API: GET [AT] /example/test1
note API: Verify AT
API -> curl: HTTP/1.1 200 OK [data]
curl -> API: DELETE [AT] /example/test1
note API: Verify AT
API -> curl: HTTP/1.1 200 OK
curl -> API: GET [AT] /example/test1
note API: Verify AT
API -> curl: HTTP/1.1 404 NOT FOUND
curl -> API: GET [AT] /other/test1
note API: Verify AT
API -> curl: HTTP/1.1 403 FORBIDDEN
SciTokens REST API Demo
Need public key to verify AT
Save public key
Verify AT
Verify AT
Verify AT
Verify AT
Verify AT