Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
559 views
in Technique[技术] by (71.8m points)

umbraco - WebApi auth using Azure AD

I've integrated Azure AD within Umbraco v8 using this blog post which works perfectly. The issue now is that WebApis are not working as the external login (AD) kicks in even when including the Authorization header with the WebApis call

I get the below redirect when doing a normal WebApi call. WebApi call image

So my question is, how would I make AD authenticates my WebApi calls using the Authorization header.

question from:https://stackoverflow.com/questions/65937497/webapi-auth-using-azure-ad

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I fixed the issue by setting a local account (username and password). The issue was that the user I tried authenticating with had no Content and Media start nodes, so Umbraco falls back to Azure AD authentication. Once set all is good.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...