SSO Routes
GET
/api/verifyLogin/:hash
Check if a login session for a session hash is in progress.
Name | Type | Description | |
---|---|---|---|
Params | id | String | hash id to check for active sesion |
Output | User | Logged in user. |
Sample Output
{
"_id": "mockUser",
"plan_ids": [
{
"$oid": "623659ddb8316b8b54f77815"
},
{
"$oid": "6239587fdaa1f097d40626ba"
}
],
"name": "mockUser",
"email": "mockUser@fakeemail.com",
"affiliation": "STAFF",
"grade": "AE UG Freshman",
"school": "jooby hooby",
"__v": 0
}
GET
/api/backdoor/verification/:id
Dev login for a user.
Name | Type | Description | |
---|---|---|---|
Params | id | String | user id |
Output | User | user. |
Sample Output
{
"_id": "mockUser",
"plan_ids": [
{
"$oid": "623659ddb8316b8b54f77815"
},
{
"$oid": "6239587fdaa1f097d40626ba"
}
],
"name": "mockUser",
"email": "mockUser@fakeemail.com",
"affiliation": "STAFF",
"grade": "AE UG Freshman",
"school": "jooby hooby",
"__v": 0
}
GET
/api/login
Redirects to JHU 3rd party login page.
GET
/api/metadata
Get route used for 3rd party JHU authentication.
POST
/api/login/callback
A callback route called on successful login from JHU 3rd party login page.
Name | Type | Description | |
---|---|---|---|
User | displayName | String | full user name |
JHEDid | String | JHED of user | |
String | email of user | ||
affiliation | String | affiliation of user | |
grade | Number | year of user | |
school | String | school of user | |
Output | User | Logged in user. |
Sample Output
{
"_id": "mockUser",
"plan_ids": [
{
"$oid": "623659ddb8316b8b54f77815"
},
{
"$oid": "6239587fdaa1f097d40626ba"
}
],
"name": "mockUser",
"email": "mockUser@fakeemail.com",
"affiliation": "STAFF",
"grade": "AE UG Freshman",
"school": "jooby hooby",
"__v": 0
}
DELETE
/api/verifyLogin/:hash
Deleting a login session based on a specific session hash.
Name | Type | Description | |
---|---|---|---|
Params | hash | String | session hash for session to delete |
Output | User | user with deleted login session |
Sample Output
{
"_id": "mockUser",
"plan_ids": [
{
"$oid": "623659ddb8316b8b54f77815"
},
{
"$oid": "6239587fdaa1f097d40626ba"
}
],
"name": "mockUser",
"email": "mockUser@fakeemail.com",
"affiliation": "STAFF",
"grade": "AE UG Freshman",
"school": "jooby hooby",
"__v": 0
}