Sha256: a5523e4ae1f9dcf9e51d0af232a718fb60d4491565e90fd9002db563ea793d7d

Contents?: true

Size: 817 Bytes

Versions: 4

Compression:

Stored size: 817 Bytes

Contents

# module Omniauth
#   class Zalo::Oauth
#     attr_reader :app_id, :app_secret, :redirect_uri, :state
    
#     # client_options = {
#     #   site: 'https://oauth.zaloapp.com',
#     #   authorize_url: "/v3/auth?app_id=#{app_id}&redirect_uri=#{redirect_uri}&state=#{state}",
#     #   access_token_url: "/v3/access_token?app_id=#{app_id}&app_secret=#{app_secret}&code=#{code}",
#     #   account_info_url: "https://graph.zalo.me/v2.0/me?access_token=#{token}&fields=id,birthday,name,gender,picture,phone"
#     # }
    
#     def initialize(app_id, app_secret, redirect_uri)
#       @app_id       = app_id
#       @app_secret   = app_secret
#       @redirect_uri = redirect_uri
#       @state        = state_hex
#     end
    
#     private
    
#     def state_hex
#       SecureRandom.hex
#     end
#   end
# end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
omniauth-zalo-0.1.4 lib/omniauth/zalo/oauth.rb
omniauth-zalo-0.1.3 lib/omniauth/zalo/oauth.rb
omniauth-zalo-0.1.2 lib/omniauth/zalo/oauth.rb
omniauth-zalo-0.1.1 lib/omniauth/zalo/oauth.rb