2
2
3
3
[ ![ Gem Version] ( http://img.shields.io/gem/v/omniauth-oauth2.svg )] [ gem ]
4
4
[ ![ 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 ]
7
6
[ ![ Coverage Status] ( http://img.shields.io/coveralls/intridea/omniauth-oauth2.svg )] [ coveralls ]
8
7
[ ![ Security] ( https://hakiri.io/github/omniauth/omniauth-oauth2/master.svg )] ( https://hakiri.io/github/omniauth/omniauth-oauth2/master )
9
8
10
9
[ gem ] : https://rubygems.org/gems/omniauth-oauth2
11
10
[ 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
15
13
16
14
This gem contains a generic OAuth2 strategy for OmniAuth. It is meant to serve
17
15
as a building block strategy for other strategies and not to be used
@@ -34,6 +32,10 @@ module OmniAuth
34
32
# This is where you pass the options you would pass when
35
33
# initializing your consumer from the OAuth gem.
36
34
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
37
39
38
40
# These are called after authentication has succeeded. If
39
41
# possible, you should try to set the UID without making
64
66
```
65
67
66
68
That's pretty much it!
67
-
0 commit comments