英文:
Azure bus integration with GO based application
问题
我们正在尝试从“GO”语言应用程序连接到Azure服务总线实体,并且可以通过提供SAS令牌或通过安全主体获得的Azure AD OAuth2.0令牌来与Azure服务总线实体集成。从技术上讲,我更喜欢使用安全主体选项,而不是SAS令牌,因为它存在安全漏洞。
如何在像“GO”这样的语言中获取来自Azure AD的OAuth2.0令牌,而Azure AD SDK不可用?
是否可以直接调用Azure AD REST API来访问OAuth2.0令牌?如果是的话,一些代码示例会很有帮助,否则请建议合适的选项。
英文:
We are trying to connect to Azure service bus entity from "GO" language application & the integration with Azure service bus entity is possible by supplying either SAS token or Azure AD OAuth2.0 token which will be obtained via security principals. Technically I prefer security principals option rather than SAS token as it has security vulnerabilities.
How to acquire OAuth2.0 token from Azure AD using language like "GO" for which Azure AD SDK is not available?
Is it possible to make direct call to Azure AD REST APIs to access OAuth2.0 token? if yes some code sample would be helpful otherwise please suggest suitable options.
答案1
得分: 0
以下是翻译好的部分:
这里是适用于 Go 的可用身份验证方法。
此外,您可以直接调用以获取访问令牌。
https://login.microsoftonline.com/{tenant}/oauth2/token
参考:
使用Azure Active Directory对应用程序进行身份验证和授权以访问Azure Service Bus实体
英文:
Here are available authentication methods for Go.
Also, you can make a direct call to get the access token.
https://login.microsoftonline.com/{tenant}/oauth2/token
Reference:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论