mirror of https://github.com/abpframework/abp.git
Browse Source
```cs
AddAbpOpenIdConnect("oidc", options =>
{
//...
options.ClientId = configuration["AuthServer:ClientId"];
options.ClientSecret = configuration["AuthServer:ClientSecret"];
options.UsePkce = true;
//...
options.Events.OnTokenResponseReceived = ctx =>
{
ctx.Properties?.SetString("client_id", configuration["AuthServer:ClientId"]);
ctx.Properties?.SetString("client_secret", configuration["AuthServer:ClientSecret"]);
return Task.CompletedTask;
};
});
```
pull/24598/head
1 changed files with 6 additions and 3 deletions
Loading…
Reference in new issue