Skip to content

Authentication

Badbird5907 edited this page Sep 15, 2022 · 6 revisions

Some Info:

Note: Most of this (authentication) info from tylertian123/pytdsbconnects/

Send requests with the Content-Type: x-www-form-urlencoded header unless noted.

Logging in

Path: /token POST

Body:

key value
username <9 digit student id #>
password <password>
grant_type password

Description: Returns a bearer access token to send with all authenticated requests. Along with a refresh token, its creation & expiry timestamp. The refresh token expiry (refresh_token_expires_in) is in unix epoch seconds.

Using the refresh token

Path: /token POST Body:

key value
refresh_token refresh token returned on login
grant_type refresh_token
Clone this wiki locally