Skip to content
This repository has been archived by the owner on Oct 8, 2022. It is now read-only.

Latest commit

 

History

History
23 lines (20 loc) · 485 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 485 Bytes

OmniAuth GeekPark

This is the official OmniAuth strategy for authenticating to GeekPark.

Usage

use OmniAuth::Builder do
  provider :geekpark, ENV['GEEKPARK_KEY'], ENV['GEEKPARK_SECRET']
end

Change the client options

use OmniAuth::Builder do
  provider :geekpark, ENV['GEEKPARK_KEY'], ENV['GEEKPARK_SECRET'], {
    client_options: {
      site: 'YOUR_SITE_ADDRESS',
      authorize_url: 'YOUR_AUTHORIZE_URL',
      token_url: 'YOUR_TOKEN_URL'
    }
  }
end