简体   繁体   English

使用Windows Azure服务获取客户端机密

[英]Get Client Secret using Windows Azure Service

I am building a Windows Store App which provides users to authenticate themselves via authentication providers such as Facebook , Live , Twitter etc. 我正在构建一个Windows Store应用程序,该应用程序向用户提供通过Facebook,Live,Twitter等身份验证提供程序进行身份验证的身份。

I am using Windows Azure Mobile Service to facilitate my authentication. 我正在使用Windows Azure移动服务来促进身份验证。 For certain authentication provider (such as twitter) I am storing the Client ID and secret in the app and using them to facilitate the authentication. 对于某些身份验证提供程序(例如twitter),我将客户端ID和密码存储在应用程序中,并使用它们来促进身份验证。

Can I obtain the Client Secret by passing details to Azure Service so that I don't need to store then in my app. 我可以通过将详细信息传递给Azure服务来获取“客户端机密”,这样我就不需要再将其存储在我的应用程序中了。

Thanks in advance. 提前致谢。

Don't store any secrets in the application. 不要在应用程序中存储任何秘密。 Apps can be "reverse-engineered" and their code retrieved, after which the secrets would be no more. 可以对应用程序进行“逆向工程”并检索其代码,之后便不再需要任何秘密。 The best place to store secrets is in the back-end, and in the case of Azure Mobile Services, the application settings is a good way to do so. 存放秘密的最佳位置是后端,对于Azure移动服务, 应用程序设置是一种很好的存储方式。

If you want to access the twitter id and secret (ie, the "consumer key" and "consumer secret") which you set in the identity tab of the portal, you don't need to create new app settings for that, they're exposed in the config object (see the section titled "The mobile service configuration" in this post for more information). 如果要访问在门户的标识选项卡中设置的Twitter ID和机密(即“用户密钥”和“用户机密”),则无需为此创建新的应用程序设置,它们是再在配置对象露出(参照标题为“移动业务配置”的部分此信息的详细信息)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我们可以在不使用客户端密码的情况下从 azure 获取密码值吗? - Can we get secret value from azure without using client secret? 在 Azure 中使用带有客户端密钥的 GraphServiceClient 的授权异常 - Authorisation Exception using GraphServiceClient with Client Secret in Azure 如何使用一个驱动器业务API从本机应用程序的azure活动目录中获取客户机密码? - How to get client secret from azure active directory for native app for using one drive business API? Azure AD - 从令牌获取客户端密钥描述 - Azure AD - Get Client Secret Description from Token Azure 和 Microsoft Graph:使用客户端密码拒绝访问收件箱 - Azure & Microsoft Graph: Access denied accessing inbox, using Client Secret Azure数据湖服务到服务身份验证客户端机密,AdalServiceException和WebException - Azure Data Lake Service-to-service authentication client secret, AdalServiceException and WebException 使用应用程序客户端密码访问 azure 密钥保管库密码 - Access azure key vault secret with application client secret 从Windows Azure服务获取客户端IP地址 - Acquire client IP address from Windows Azure service 用于Windows Azure服务管理的Metro应用程序中的客户端证书 - Client-side certificate in a Metro app for Windows Azure Service Management 如何使用图形服务客户端根据 azure 活动目录中的组 ID 获取组名 - How to get group names based on group id in azure active directory using graph service client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM