Skip to content

Commit

Permalink
Fix #37: Add documentation for specifying auth request parameters. (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamzterz authored Dec 7, 2018
1 parent e410055 commit 0dba3ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ config = ProviderConfiguration(provider_metadata=provider_metadata, [client conf
See the OpenID Connect specification for more information about the
[provider metadata](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).

#### Customizing authentication request parameters
To customize the [authentication request parameters](https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest),
use `auth_request_params` in `ProviderConfiguration`:
```python
auth_params = {'scope': ['openid', 'profile']} # specify the scope to request
config = ProviderConfiguration([provider/client config], auth_request_params=auth_params)
```

#### Static client registration

If you have already registered a client with the provider, specify the client credentials directly:
Expand Down

0 comments on commit 0dba3ce

Please sign in to comment.