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