如何创建 Azure Web 应用程序来验证用户并获取其访问令牌?
How can I create a Azure Web Application to authenticate User and acquire its Access Token?
我想创建一个 Azure Web 应用程序,它可以在通过 Azure AD 凭据打开 Web 应用程序 link 时对 external/internal(来自任何组织)用户进行身份验证,并在 return.
我想使用该访问令牌以编程方式在用户的租户中创建应用程序注册。
首先,您需要register an application and set it as a multi-tenant application, then use the auth code flow验证用户并获取访问令牌。
接下来需要使用access token调用MS graph api创建应用,因为你是使用auth code flow获取token,所以需要授予delegation permissions
到应用程序。
参见:sample。
我想创建一个 Azure Web 应用程序,它可以在通过 Azure AD 凭据打开 Web 应用程序 link 时对 external/internal(来自任何组织)用户进行身份验证,并在 return.
我想使用该访问令牌以编程方式在用户的租户中创建应用程序注册。
首先,您需要register an application and set it as a multi-tenant application, then use the auth code flow验证用户并获取访问令牌。
接下来需要使用access token调用MS graph api创建应用,因为你是使用auth code flow获取token,所以需要授予delegation permissions
到应用程序。
参见:sample。