Skip to content

Add a method to IServiceCollection, for Razor, to add a consent handler #805

Description

@bakerCaleb

Is your feature request related to a problem? Please describe.
When writing a Razor web app, I'd like to add a consent handler. There is no available method. I'm using the one for Blazor, which I think will work, but it is confusing and I'm not confident it is the correct approach.

Example from ConfigureServices() in Startup.cs:

services.AddServerSideBlazor()
.AddMicrosoftIdentityConsentHandler();

Describe the solution you'd like
I'd like something like:
services.AddServerSideRazor()
.AddMicrosoftIdentityConsentHandler();

Describe alternatives you've considered
If it's the same code for Razor and Blazor, maybe just make it neutral, like:

services.AddServerSide()
.AddMicrosoftIdentityConsentHandler();

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions