Clone
1
Internal Use Endpoints
enstrayed edited this page 2025-12-15 22:05:51 -08:00

/dynamic/icons/*

Methods: GET | Function

Returns the requested icon (stored in website/dynamic/icons) in any color (hex) specified in the URL. Example: /dynamic/icon/github/00ff00 will return the GitHub logo in neon green.

/api/auth/callback

Methods: GET | Function

This is the endpoint used by ECLS to finish the login flow. It will write the newly created token to the APIToken cookie as well as performing the action set by state, see below.

/api/auth/login

Methods: GET | Function

Redirects the user to ECLS to login. The state parameter can be used to specify how the login flow will behave. The accepted "states" are:

  • redirect - Redirects the user to a page after logging in. This paramter requires the destination paramter to also be set with the URL the user will be redirected to.
  • display - Displays the generated token to the user after login. Currently, this still writes the new token to the APIToken cookie, though this is planned to change.
  • close - This will close the page after logging in. This requires the page to be opened with JavaScript otherwise it will not automatically close.