Sha256: 5f4c6e4db14202ffc639514a6b8240426359d63ce23092ec7f6303f53f1f675f

Contents?: true

Size: 434 Bytes

Versions: 2

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

require 'omniauth-oauth2'

module OmniAuth
  module Strategies
    class Cybozu < OmniAuth::Strategies::OAuth2
      option :name, 'cybozu'

      option :skip_info, true

      option :client_options, :authorize_url => '/oauth2/authorization',
               :token_url => '/oauth2/token'

    private

      def callback_url
        full_host + script_name + callback_path
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omniauth-cybozu-0.2.0 lib/omniauth/strategies/cybozu.rb
omniauth-cybozu-0.1.4 lib/omniauth/strategies/cybozu.rb