You are currently viewing 'User Login ' page



Usage

POST /Auth/ValidateLogin

Content-Type

application/json

Description

Log into Rank One with either a Rank One User or Rank One Parent Account.

Note

Put the access token generated from the Get Access Token endpoint (Auth/ValidateUser) in the request header field "Authorization" as "bearer ACCESS_TOKEN_HERE".

Example

Sample Body:

{

"userName": "***********",
"password": "***********",
}

Sample Response:

{

"access_token": "abcd415236evsaasc",
"token_type": "bearer",
"expires_in": "2678400",
"message": "",
"userID": "4f8df05c-0d35-4fe1-b772-62e15a03f910",
"accessLevel": See Access Levels,
"responseCode": See Response Codes
}

Access Levels

Value
Description
0
Parent Account
1
Athletic Director
2
Assistant Athletic Director
3
Administrator
4
Athletic Trainer
5
Head Coach
6
Assistant Coach
7
Secretary
8
Director
9
Read Only
10
Stadium Manager

Response Codes

Value
Description
1.0
Successful
2.0
User does not exist
3.0
Login failed
4.1
Username is tied to a Facebook login
4.2
Username is tied to a Google login
9.9
Unknown exception