omniauth-microsoft_graph 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of omniauth-microsoft_graph might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/omniauth/microsoft_graph/version.rb +1 -1
- data/lib/omniauth/strategies/microsoft_graph.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e181c05224cd0ba7b55fc5022d50d5b77724322
|
4
|
+
data.tar.gz: c6f400ff1ab2ba5aea49b2666783db21aa20ae4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e10d5b02ae8c31c6c597dc76f21cfebcb815dfdb14b2f242c7a791e0c601b0b93411b3facce904c6738268301cc71b72aa348c367aec8798d5f891cec7525a13
|
7
|
+
data.tar.gz: cff2a6fc4bbc047e62471213e05a05be0769a5e1cf816252672ae5c1c0f35e0d23bf604a0c228206688306263f172c60e193a3d91cf7242428e137efff14ef99
|
data/README.md
CHANGED
@@ -21,12 +21,19 @@ Or install it yourself as:
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
+
#### Configuration
|
24
25
|
```ruby
|
25
26
|
Rails.application.config.middleware.use OmniAuth::Builder do
|
26
27
|
provider :microsoft_graph, ENV['AZURE_APPLICATION_CLIENT_ID'], ENV['AZURE_APPLICATION_CLIENT_SECRET']
|
27
28
|
end
|
28
29
|
```
|
29
30
|
|
31
|
+
#### Login Hint
|
32
|
+
Just add {login_hint: "email@example.com"} to your url generation to form:
|
33
|
+
```ruby
|
34
|
+
/auth/microsoft_graph?login_hint=email@example.com
|
35
|
+
```
|
36
|
+
|
30
37
|
## Contributing
|
31
38
|
|
32
39
|
1. Fork it ( https://github.com/synth/omniauth-microsoft_graph/fork )
|
@@ -5,7 +5,7 @@ module OmniAuth
|
|
5
5
|
class MicrosoftGraph < OmniAuth::Strategies::OAuth2
|
6
6
|
BASE_SCOPE_URL = 'https://graph.microsoft.com/'
|
7
7
|
BASE_SCOPES = %w[offline_access openid email profile].freeze
|
8
|
-
DEFAULT_SCOPE = 'openid email profile User.Read'.freeze
|
8
|
+
DEFAULT_SCOPE = 'offline_access openid email profile User.Read'.freeze
|
9
9
|
|
10
10
|
option :name, :microsoft_graph
|
11
11
|
|