| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | module Oauth |
| 4 | # "Continue with GitHub" — see Oauth::ProviderController for the flow. |
| 5 | class GithubController < ProviderController |
| 6 | private |
| 7 | |
| 8 | def provider_label |
| 9 | "GitHub" |
| 10 | end |
| 11 | |
| 12 | def provider_key |
| 13 | "github" |
| 14 | end |
| 15 | |
| 16 | def authorize_url |
| 17 | SmbcloudAuthService.github_authorize_url(redirect_uri: github_auth_callback_url) |
| 18 | end |
| 19 | end |
| 20 | end |