22
33[ ![ Gem Version] ( http://img.shields.io/gem/v/omniauth-oauth2.svg )] [ gem ]
44[ ![ Build Status] ( http://img.shields.io/travis/omniauth/omniauth-oauth2.svg )] [ travis ]
5- [ ![ Dependency Status] ( http://img.shields.io/gemnasium/omniauth/omniauth-oauth2.svg )] [ gemnasium ]
6- [ ![ Code Climate] ( http://img.shields.io/codeclimate/github/intridea/omniauth-oauth2.svg )] [ codeclimate ]
5+ [ ![ Code Climate] ( http://img.shields.io/codeclimate/maintainability/intridea/omniauth-oauth2.svg )] [ codeclimate ]
76[ ![ Coverage Status] ( http://img.shields.io/coveralls/intridea/omniauth-oauth2.svg )] [ coveralls ]
87[ ![ Security] ( https://hakiri.io/github/omniauth/omniauth-oauth2/master.svg )] ( https://hakiri.io/github/omniauth/omniauth-oauth2/master )
98
109[ gem ] : https://rubygems.org/gems/omniauth-oauth2
1110[ travis ] : http://travis-ci.org/omniauth/omniauth-oauth2
12- [ gemnasium ] : https://gemnasium.com/github.com/omniauth/omniauth-oauth2
13- [ codeclimate ] : https://codeclimate.com/github/omniauth/omniauth-oauth2
14- [ coveralls ] : https://coveralls.io/r/omniauth/omniauth-oauth2
11+ [ codeclimate ] : https://codeclimate.com/github/intridea/omniauth-oauth2
12+ [ coveralls ] : https://coveralls.io/r/intridea/omniauth-oauth2
1513
1614This gem contains a generic OAuth2 strategy for OmniAuth. It is meant to serve
1715as a building block strategy for other strategies and not to be used
@@ -34,6 +32,10 @@ module OmniAuth
3432 # This is where you pass the options you would pass when
3533 # initializing your consumer from the OAuth gem.
3634 option :client_options , {:site => " https://api.somesite.com" }
35+
36+ # You may specify that your strategy should use PKCE by setting
37+ # the pkce option to true: https://tools.ietf.org/html/rfc7636
38+ option :pkce , true
3739
3840 # These are called after authentication has succeeded. If
3941 # possible, you should try to set the UID without making
6466```
6567
6668That's pretty much it!
67-
0 commit comments