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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c5f4e25d9aaad1372d852d26d8f0ee73f8141c8
4
- data.tar.gz: 55612db1eb0864d8d5168bbe134235bb975f474f
3
+ metadata.gz: 2e181c05224cd0ba7b55fc5022d50d5b77724322
4
+ data.tar.gz: c6f400ff1ab2ba5aea49b2666783db21aa20ae4e
5
5
  SHA512:
6
- metadata.gz: b99db019fee49be620b14595ebd65e1fe1431d7f7ece6719a7328c526db6ef00359628cd6e87347c9bf3c9893d5170142e7f105910f4834f1307b5c8a84de930
7
- data.tar.gz: 228351c9cfe161232636bb59dbc0474a33322ff6fca9be25023de35f727eb07293a000d52bb035555bb9cb0e8a37283ec63797850430b463020a4753b79b2f00
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 )
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module MicrosoftGraph
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
@@ -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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-microsoft_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Philips