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