首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用多因素身份验证检查sharepoint网站的用户凭据

使用多因素身份验证检查sharepoint网站的用户凭据
EN

Stack Overflow用户
提问于 2021-09-06 07:18:40
回答 1查看 69关注 0票数 0

我正在尝试检查用户是否可以使用其用户凭据登录到特定的sharepoint站点。

代码语言:javascript
复制
from office365.runtime.auth.authentication_context import AuthenticationContext

ctx_auth = AuthenticationContext(url)
try: 
    if ctx_auth.acquire_token_for_user("email", "password"):
        print("Get access")        
except:
    print("access denied")

但是这个sharepoint站点使用多因素身份验证,我得到了以下错误:

代码语言:javascript
复制
An error occurred while retrieving token from XML response: AADSTS50076: Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access '' 

This question也有类似的问题,答案是使用生成的"client_id“和”client_secret“

除此之外,我还必须检查用户凭据以授予用户访问权限。

这个是可能的吗?

EN

回答 1

Stack Overflow用户

发布于 2021-09-06 09:51:29

据我所知,如果为SharePoint启用了MFA,则不可能使用名称和密码来授予用户访问权限。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/69070588

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档