Sha256: 435c2332285da4f18c33b934692daff7ccbcb2f67e094d23e7f302e14ce6550f
Contents?: true
Size: 441 Bytes
Versions: 3
Compression:
Stored size: 441 Bytes
Contents
require 'securerandom' class GoogleSignIn::AuthorizationsController < GoogleSignIn::BaseController def create redirect_to login_url(scope: 'openid profile email', state: state), flash: { proceed_to: params.require(:proceed_to), state: state } end private def login_url(**params) client.auth_code.authorize_url(prompt: 'login', **params) end def state @state ||= SecureRandom.base64(16) end end
Version data entries
3 entries across 3 versions & 1 rubygems