Authentication (1.1-oas3)

Download OpenAPI specification:Download

API calls to authenticate the user. These calls are also included in other API documentation for convenience.

Public

Operations that can be called without logging in

Log in to get initial access token.

Request Body schema:
username
required
string

The user's myTurn.com username, or their membership ID with their organization/tool library.

password
required
string

The user's myTurn.com password.

Responses

Request samples

Content type
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "username": "string",
  • "lastName": "string",
  • "firstName": "string",
  • "displayName": "string",
  • "emailAddress": "string",
  • "expires_in": 0,
  • "token_type": "Bearer",
  • "access_token": "string",
  • "roles": [
    ],
  • "isAdmin": true,
  • "membership": {
    },
  • "organizations": [
    ]
}

Refresh the access token. Deprecated

Request Body schema:
required
grant_type
required
string
Value: "refresh_token"

Must always be "refresh_token".

refresh_token
required
string

The refresh token issued to the client during a previous login or refresh.

Responses

Request samples

Content type
No sample

Response samples

Content type
application/json
{
  • "username": "string",
  • "lastName": "string",
  • "firstName": "string",
  • "displayName": "string",
  • "emailAddress": "string",
  • "expires_in": 0,
  • "token_type": "Bearer",
  • "access_token": "string",
  • "roles": [
    ],
  • "isAdmin": true,
  • "membership": {
    },
  • "organizations": [
    ]
}

Send an email with a link to reset password to the user who this email address belongs to, if such a user exists in this organization. If no such user exists, the answer is the same as if the user exists.

Request Body schema:
email
required
string

The user's email address

Responses

Request samples

Content type
{
  • "email": "string"
}

Response samples

Content type
application/json
"If a matching account exists, we will send a password reset to the address on file."

Send an email with a link to reset password to the user who this username belongs to, if such a user exists in this organization. If no such user exists, the answer is the same as if the user exists.

Request Body schema:
email
string

The user's myTurn.com username

Responses

Request samples

Content type
{
  • "email": "string"
}

Response samples

Content type
application/json
"OK"

Send an email with a link to reset password to the user who this member id belongs to, if such a user exists in this organization. If no such user exists, the answer is the same as if the user exists.

Request Body schema:
membersId
string

The user's member id within this organization

Responses

Request samples

Content type
{
  • "membersId": "string"
}

Response samples

Content type
application/json
"OK"

User

Operations available to registered users who are logged in

Details about the current user.

Responses

Response samples

Content type
application/json
{
  • "username": "string",
  • "lastName": "string",
  • "firstName": "string",
  • "displayName": "string",
  • "emailAddress": "string",
  • "expires_in": 0,
  • "token_type": "Bearer",
  • "access_token": "string",
  • "roles": [
    ],
  • "isAdmin": true,
  • "membership": {
    },
  • "organizations": [
    ]
}

Log the user out of the system.

Responses

Log the user out of the system. Deprecated

Responses

Details about the current user.

Responses

Response samples

Content type
application/json
{
  • "username": "string",
  • "lastName": "string",
  • "firstName": "string",
  • "displayName": "string",
  • "emailAddress": "string",
  • "expires_in": 0,
  • "token_type": "Bearer",
  • "access_token": "string",
  • "roles": [
    ],
  • "isAdmin": true,
  • "membership": {
    },
  • "organizations": [
    ]
}

Lists which organizations the user belongs to, and describes the membership.

Responses

Response samples

Content type
application/json
[
  • {
    }
]