SAP Sponsorships Engine Security Webservices API

URL: /api/restsecurity/access_token

Description:

Removes / invalidates any existing access token that so far was valid as a bearer token in a request's Authorization: HTTP header field and produces a new one which is returned in the response.


Request Method: GET/POST
Output format: JSON document of the following format
{"username":"admin","access_token":"tnN1yVnXRuqEce3JqMpLUl7d+qeofez0tljKU1KzALw="}
Mandatory parameters: None
Examples:
Using the session ID in a session cookie:
curl -D /tmp/header -b JSESSIONID=5e94c93e-b515-4bcd-8df8-0c786805a9e0 http://127.0.0.1:8888/security/api/restsecurity/remove_access_token
Using POST username and password form parameters:
curl -d "username=admin&password=admin" -D /tmp/header http://127.0.0.1:8888/security/api/restsecurity/remove_access_token
Using a bearer access token:
curl -D /tmp/header -H "Authorization: Bearer MVPg/uCV1QGqMDmDtUuOQBrSrB1NlIldm0LW+dnxZ2A=" http://127.0.0.1:8888/security/api/restsecurity/remove_access_token
Using basic authentication:
curl -D /tmp/header http://admin:admin@127.0.0.1:8888/security/api/restsecurity/remove_access_token