Skip to content

PnP Core from API using OBO #1215

Discussion options

You must be logged in to vote

So I did figure out eventually... The function needs the usertoken which can be retrieved by using AuthenticationHeaderValue.Parse(Request.Headers.Authorization).Parameter

PnP OBO works like a charm...

I also had this in my API service pipeline
builder.Services.AddMicrosoftIdentityWebApiAuthentication(config)
.EnableTokenAcquisitionToCallDownstreamApi()
.AddMicrosoftGraph(config.GetSection("DownstreamApi"))
.AddInMemoryTokenCaches();

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jansenbe
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jansenbe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants