Azure与基于GO的应用程序集成

huangapple go评论67阅读模式
英文:

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与基于GO的应用程序集成

参考:

OAuth 2.0客户端凭据授权

使用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

Azure与基于GO的应用程序集成

Reference:

OAuth 2.0 client credentials grant

Authenticate and authorize an application with Azure Active Directory to access Azure Service Bus entities

huangapple
  • 本文由 发表于 2020年1月3日 17:25:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/59575965.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定