| 1 | # frozen_string_literal: true |
| 2 | |
| 3 | module Api |
| 4 | module V1 |
| 5 | module Oauth |
| 6 | # "Continue with GitHub" for browser SPA clients — see BrokeredController. |
| 7 | class GithubController < BrokeredController |
| 8 | private |
| 9 | |
| 10 | def provider |
| 11 | "github" |
| 12 | end |
| 13 | |
| 14 | def authorize_url(redirect_uri) |
| 15 | SmbcloudAuthService.github_authorize_url(redirect_uri: redirect_uri) |
| 16 | end |
| 17 | end |
| 18 | end |
| 19 | end |
| 20 | end |