Skip to content

Commit 614f293

Browse files
authored
Added usage for login_hint parameter
1 parent fdac6f4 commit 614f293

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,19 @@ Or install it yourself as:
2121

2222
## Usage
2323

24+
#### Configuration
2425
```ruby
2526
Rails.application.config.middleware.use OmniAuth::Builder do
2627
provider :microsoft_graph, ENV['AZURE_APPLICATION_CLIENT_ID'], ENV['AZURE_APPLICATION_CLIENT_SECRET']
2728
end
2829
```
2930

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+
3037
## Contributing
3138

3239
1. Fork it ( https://github.com/synth/omniauth-microsoft_graph/fork )

0 commit comments

Comments
 (0)