http://example.com:7819/RTCP/auth/discovery
{
"subject": "http://example.com:7819/RTCP/auth",
"links": [
{
"href": "http://example.com:7819/RTCP/auth/token",
"rel": "http://jazz.net/auth/jsa/token"
},
{
"href": "http://example.com:7819/RTCP/auth/introspection",
"rel": "http://jazz.net/auth/jsa/introspection"
},
{
"href": "http://example.com:7819/RTCP/auth/session-sign-in",
"rel": "http://jazz.net/auth/jsa/session-signin"
},
{
"href": "http://example.com:7819/RTCP/auth/session-sign-out",
"rel": "http://jazz.net/auth/jsa/deauthorize"
}
]
}
http://jazz.net/auth/jsa/session-signin
See Get a list of URLs to use for authentication.Using HTTP Basic Authentication involves setting the Authorization HTTP request header to the string "Basic" followed by a space, followed by a base64-encoded string that consists of the username, a colon, and the password. For example, for the username "user1" and the password "password", construct the string "user1:password". After base64 encoding, the string becomes "dXNlcjE6cGFzc3dvcmQ=". The following example shows the HTTP request:
POST /RTCP/auth/session-sign-in HTTP/1.1
Host: example.com:7819
Authorization: Basic dXNlcjE6cGFzc3dvcmQ=
Content-Length: 0
{ "token_type" : "urn:jazz:params:oauth:token-type:session",
"access_token" : "552359hakks86205mqjdgy",
"jazz_subject" : "user1"}
The jazz_subject property contains the username that you created a session for. The access_token property contains the security token for this session. For information about how to use this token to run REST API calls as this user, see REST and Domain level security.
Authorization: X-Jazz-Session 552359hakks86205mqjdgy