OAuthAPI
OAuth initialization and callback endpoints for GitHub and Google.
| Method | HTTP | Description |
|---|---|---|
MainApiV1StartGithubGet | GET /start/github | Start GitHub OAuth |
MainApiV1StartGithubCallbackGet | GET /start/github/callback | GitHub callback |
MainApiV1StartGoogleGet | GET /start/google | Start Google OAuth |
MainApiV1StartGoogleCallbackGet | GET /start/google/callback | Google callback |
githubStart, _, err := client.OAuthAPI.
MainApiV1StartGithubGet(context.Background()).
Execute()
githubCallback, _, err := client.OAuthAPI.
MainApiV1StartGithubCallbackGet(context.Background()).
Execute()
googleStart, _, err := client.OAuthAPI.
MainApiV1StartGoogleGet(context.Background()).
Execute()
googleCallback, _, err := client.OAuthAPI.
MainApiV1StartGoogleCallbackGet(context.Background()).
Execute()
OAuth is normally completed in a browser because the identity provider redirects to the callback URL with query parameters that the backend expects.