mirror of
https://gitee.com/dcren/openiddict-documentation.git
synced 2025-07-17 19:37:38 +08:00
Remove the explicit call to options.SetRedirectionEndpointUris() from the web providers guide
This commit is contained in:
parent
93336b1198
commit
f80849cc1d
@ -90,8 +90,8 @@ the OpenIddict client to communicate with the remote authorization server. For i
|
|||||||
<Configuration AuthorizationEndpoint="https://www.reddit.com/api/v1/authorize"
|
<Configuration AuthorizationEndpoint="https://www.reddit.com/api/v1/authorize"
|
||||||
TokenEndpoint="https://www.reddit.com/api/v1/access_token"
|
TokenEndpoint="https://www.reddit.com/api/v1/access_token"
|
||||||
UserinfoEndpoint="https://oauth.reddit.com/api/v1/me">
|
UserinfoEndpoint="https://oauth.reddit.com/api/v1/me">
|
||||||
<GrantType Value="authorization_code" />
|
<GrantType Value="authorization_code" />
|
||||||
<GrantType Value="refresh_token" />
|
<GrantType Value="refresh_token" />
|
||||||
</Configuration>
|
</Configuration>
|
||||||
</Environment>
|
</Environment>
|
||||||
</Provider>
|
</Provider>
|
||||||
@ -156,13 +156,7 @@ the OpenIddict client to communicate with the remote authorization server. For i
|
|||||||
|
|
||||||
If the targeted service is fully standard-compliant, no additional configuration should be required at this point.
|
If the targeted service is fully standard-compliant, no additional configuration should be required at this point.
|
||||||
To confirm it, build the solution and add the new provider to the `OpenIddict.Sandbox.AspNetCore.Client` sandbox:
|
To confirm it, build the solution and add the new provider to the `OpenIddict.Sandbox.AspNetCore.Client` sandbox:
|
||||||
- Update `Startup.cs` to use your new provider:
|
- Update `Startup.cs` to register your new provider:
|
||||||
|
|
||||||
```csharp
|
|
||||||
options.SetRedirectionEndpointUris(
|
|
||||||
// ... other providers...
|
|
||||||
"callback/login/[provider name]");
|
|
||||||
```
|
|
||||||
|
|
||||||
```csharp
|
```csharp
|
||||||
// Register the Web providers integrations.
|
// Register the Web providers integrations.
|
||||||
|
Loading…
Reference in New Issue
Block a user