Tag: azure active directory

用户凭证需要获取访问令牌。 请调用非沉默的acquireTokenWithResource方法

我正在使用ADALiOS进入我的应用程序进行身份validation。 当用户login到应用程序时,我收到以下错误: “参数'cacheItem.scopes'是无效的。值:(null)。” 和 “用户凭证需要获取访问令牌,请调用非静默acquireTokenWithResource方法” 任何帮助,将不胜感激。 谢谢

如何使用AppAuth从iOS应用程序对Azure AD进行身份validation?

我有这个例子与谷歌作为ID提供者: https://github.com/jchnxu/TestOIDAppAuth-iOS 该示例使用Swift中iOS的AppAuth库和Open Id Connect。 我不使用ADAL,因为它似乎不支持Swift 3。 My iOS app bundle is: webinnovation.no.Test 我在ViewController.swift中configuration了以下常量: let kIssuer = "https://accounts.google.com" let kClientID = "<my id from Google>.apps.googleusercontent.com" let kRedirectURI = "com.googleusercontent.apps. <my id from Google>:oauthredirect" In plist.info: “com.googleusercontent.apps. <my id from Google>” Google Id提供者可以按预期工作。 我得到一个login对话框,并login后正确解散,应用程序正确地获得一个令牌。 但是,如何将其映射到Azure AD? 我尝试了这样的组合: let kIssuer = "https://login.microsoftonline.com/webinnovation.onmicrosoft.com" let kClientID = "<my Application […]