File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
articles/active-directory/develop Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -197,14 +197,7 @@ services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
197
197
.AddMicrosoftIdentityWebApi (Configuration );
198
198
services .Configure <JwtBearerOptions >(JwtBearerDefaults .AuthenticationScheme , options =>
199
199
{
200
- var existingOnTokenValidatedHandler = options .Events .OnTokenValidated ;
201
- options .Events .OnTokenValidated = async context =>
202
- {
203
- await existingOnTokenValidatedHandler (context );
204
- // Your code to add extra configuration that will be executed after the current event implementation.
205
- options .TokenValidationParameters .ValidIssuers = new [] { /* list of valid issuers */ };
206
- options .TokenValidationParameters .ValidAudiences = new [] { /* list of valid audiences */ };
207
- };
200
+ options .TokenValidationParameters .ValidAudiences = new [] { /* list of valid audiences */ };
208
201
});
209
202
```
210
203
You can’t perform that action at this time.
0 commit comments