Class: OmniAuth::Strategies::Apple

Inherits:
OAuth2
  • Object
show all
Defined in:
lib/omniauth/strategies/apple.rb

Instance Method Summary collapse

Instance Method Details

#authorize_paramsObject



41
42
43
# File 'lib/omniauth/strategies/apple.rb', line 41

def authorize_params
  super.merge(nonce: new_nonce)
end

#callback_urlObject



45
46
47
# File 'lib/omniauth/strategies/apple.rb', line 45

def callback_url
  options[:redirect_uri] || (full_host + script_name + callback_path)
end

#clientObject



37
38
39
# File 'lib/omniauth/strategies/apple.rb', line 37

def client
  ::OAuth2::Client.new(client_id, client_secret, deep_symbolize(options.client_options))
end