CloudEnvironment 类

捆绑给定Azure环境的所有特定于云的服务终结点。 使用预定义实例(PUBLIC、US_GOV、US_GOV_DOD、CHINA)或通过 with_overrides()构造自定义实例。

构造函数

CloudEnvironment(login_endpoint: str, login_tenant: str, bot_scope: str, token_service_url: str, openid_metadata_url: str, token_issuer: str, graph_scope: str)

参数

名称 说明
login_endpoint
必需
login_tenant
必需
bot_scope
必需
token_service_url
必需
openid_metadata_url
必需
token_issuer
必需
graph_scope
必需

属性

bot_scope

api.botframework.com/.default”。

bot_scope: str

graph_scope

graph.microsoft.com/.default”。

graph_scope: str

login_endpoint

login.microsoftonline.com”。

login_endpoint: str

login_tenant

默认的多租户登录租户(例如“botframework.com”)。

login_tenant: str

openid_metadata_url

用于令牌验证的 OpenID 元数据 URL。

openid_metadata_url: str

token_issuer

api.botframework.com”。

token_issuer: str

token_service_url

token.botframework.com”。

token_service_url: str