Auth

Initiates a login through an authentication provider

Required role: null

You should redirect the browser here to initate the login process. Attendees authenticate through GitHub, and staff authenticate through Google. The redirect parameter must be a URL with a valid origin. Mobile URLs will receive JWT as a URL parameter. Web URLs will receive JWT as an HTTP-only cookie. After successful authentication, the user will be redirected to the provided URL.

get/auth/login/{provider}/

Request

  • Base URL: https://adonix.hackillinois.org
  • URL: https://adonix.hackillinois.org/auth/login/{provider}/
  • Auth: none declared

Path parameters

provider'github' | 'google' | 'sponsor' required

The provider to use for authentication. Attendees use GitHub and staff use Google.

Example:github

Query parameters

redirectstring required

Must be a valid HTTPS URL (or HTTP for localhost)

Example:https://hackillinois.org/register

Response

Successful redirect to authentication provider

object required

Changes

No recorded changes to this operation across all 1 revision of this API.