Skip to content

[Feature Request] Add a .WithUser() modifier to the Microsoft Graph queries (like WithAppOnly()) #2855

@jmprieur

Description

@jmprieur

Is your feature request related to a problem? Please describe.
In some scenarios not supported by Microsoft.Identity.Web , where user token validation is done by other means than AddMicrosoftIdentityWebApi, when the code processing the request wants to call Microsoft Graph on behalf of the user, it's useful to pass-in the user

Describe the solution you'd like
ClaimsPrincipal user = ...

await _graphServiceClient.Me.GetAsync(r =>
 {
     r.Options.WithUser(user)
 });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions