Skip to content

Commit

Permalink
Added usage for login_hint parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
synth authored Mar 17, 2020
1 parent fdac6f4 commit 614f293
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,19 @@ Or install it yourself as:

## Usage

#### Configuration
```ruby
Rails.application.config.middleware.use OmniAuth::Builder do
provider :microsoft_graph, ENV['AZURE_APPLICATION_CLIENT_ID'], ENV['AZURE_APPLICATION_CLIENT_SECRET']
end
```

#### Login Hint
Just add {login_hint: "[email protected]"} to your url generation to form:
```ruby
/auth/microsoft_graph?login_hint=email@example.com
```

## Contributing

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

0 comments on commit 614f293

Please sign in to comment.