小编Nim*_*ami的帖子

我想隐藏 SQL Server 数据库中的表

我在 Azure 中创建了一个数据同步过程,以便 Azure 在Datasync架构中的 SQL Server 数据库中创建了几个表。我想隐藏那些位于Datasync架构中的表。

你们能否建议如何避免在 Azure 中显示这些表,或者如何从我的 SQL Server 中隐藏表?

在此处输入图片说明

在此处输入图片说明

sql-server azure

2
推荐指数
2
解决办法
7446
查看次数

未找到范围 (scp) 中的 Azure AD 访问令牌

我在 Azure AD 中创建了一个多租户应用程序当我尝试获取访问令牌并签入 jwt.io 时,我发现 scp(范围)丢失。

//string authority = "https://login.microsoftonline.com/{0}/common/oauth2/v2.0/token?&response_type=code&scope=openid%20profile%20User.ReadWrite%20User.ReadBasic.All%20Sites.ReadWrite.All%20Contacts.ReadWrite%20People.Read%20Notes.ReadWrite.All%20Tasks.ReadWrite%20Mail.ReadWrite%20Files.ReadWrite.All%20Calendars.ReadWrite";
//string authority = "https://login.microsoftonline.com/{0}/common/oauth2/v2.0/token?&scope=https://graph.windows.net/directory.read%20https://graph.windows.net/directory.write";
//string authority = "https://login.microsoftonline.com/{0}/common/oauth2/v2.0/token";
//string authority = "https://login.microsoftonline.com/{0}";
//string authority = "https://login.microsoftonline.com/{0}/common/oauth2/v2.0/token?&response_type=code&scope=openid%20profile%20User.Read%20User.ReadWrite%20User.ReadBasic.All";
//string authority = "https://login.microsoftonline.com/{0}/oauth2/token?scope=User.ReadBasic.All";
//string authority = "https://login.microsoftonline.com/{0}/oauth2/token?scope=User.ReadBasic.All";
string authority = "https://login.microsoftonline.com/common/oauth2/v2.0/token?response_type=token&scope=User.ReadBasic.All";
Run Code Online (Sandbox Code Playgroud)

我尝试了很多权威 URL 的组合

string graphResourceId = "https://graph.microsoft.com";
string clientId = "XXXX";
string secret = "XXXX";
authority = String.Format(authority, tenantId);
AuthenticationContext authContext = new AuthenticationContext(authority);
var accessToken = authContext.AcquireTokenAsync(graphResourceId, new ClientCredential(clientId, secret)).Result;
Run Code Online (Sandbox Code Playgroud)

在此输入图像描述

如何获取 microsoft.graph 资源的范围?

c# azure-active-directory microsoft-graph-api

2
推荐指数
1
解决办法
2487
查看次数