简体   繁体   English

使用图形API对Azure AD用户进行身份验证

[英]Authenticate Azure AD user using graph api

I am trying to authenticate user against Azure AD using a web API.We are trying build a SPA and native app for iOS, we are trying to have the API take care of the authentication for us.I looked at this and this and understood that its not possible. 我试图用网络API.We正在努力打造iOS版SPA和本机应用程序,我们正在努力使API采取us.I认证的护理看着来验证对Azure的AD用户这个这个和了解,这是不可能的。 I just want to find out if there is any work around for my scenario. 我只想了解我的方案是否可以解决。 This question is not a duplicate 这个问题不是重复的

@juunas is correct. @juunas是正确的。 You want to use something like ADAL to allow the user to authenticate against AAD for access to the Graph API and then use that auth token to access the graph. 您想使用ADAL之类的方法来允许用户针对AAD进行身份验证以访问Graph API,然后使用该auth令牌访问该图。 Microsoft has an example which may be useful to you over here . Microsoft提供了一个示例,可能对您有所帮助 It's written in objective C, but there are other SPA examples out there if you search for ADAL, SPA, and Graph API. 它是用目标C编写的,但是如果您搜索ADAL,SPA和Graph API,则还有其他SPA示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM