Versions Compared

Key

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

...

The request must be accompanied with the ‘returnUrl’ parameter.

Request payload

This should be an application/vnd.eduserv.iam.admin.user.credential-v1+json object containing a user identifier and a password

...

Code Block
Request:
POST /api/v1/example.org/account/session?returnUrl=<returnUrl> HTTP/1.1
Authorization: OAApiKey <api-key>
Content-Type: application/vnd.eduserv.iam.admin.user.credential-v1+json
{
 "username":"example_username",
 "password":"8d34-abO3-3Pda"
}

Response:
HTTP/1.1 200 OK
Content-Type: application/vnd.eduserv.iam.auth.transferToken-v1+json
{
   "username" : "example_username",
   "expiry" : "2020-08-20T15:48:00Z",
   "sessionInitiatorUrl" : "https://login.openathens.net/account/sso?
token=FGdsghjytj6y54y46J54yrthTR45yersdfhewkjfhwjkfhejkhfwjkfhjkfhewjkfhfkwjefwe",
   "links": [
   {
      "username" : "example_username",
      "href" : "/api/v1/example.org/account/example_account",
      "rel" : "self",
      "type" : "application/vnd.eduserv.iam.account-v1+json",
      "method" : "get",
   }
 ]}

...