简体   繁体   English

如何在 AWS Lambda 中进行 Azure 广告身份验证?

[英]How to do Azure Ad authentication in AWS Lambda?

Hi I am working as below.嗨,我的工作如下。 I have postman which is used to generate JWT token(Registered app in azure ad) and use token with API.我有邮递员,用于生成 JWT 令牌(在 azure 广告中注册的应用程序)并将令牌与 API 一起使用。 API will call AWS API Gateway with token. API 将使用令牌调用 AWS API 网关。 Now I generated JWT token.现在我生成了 JWT 令牌。 I am sending with each API.我正在发送每个 API。 Now I want to validate this token.现在我想验证这个令牌。 I want to use AWS lambda.我想使用 AWS lambda。 I am not sure what kind of template I should pick for this purpose?我不确定我应该为此选择什么样的模板? Also I am not finding any better examples to validate template.我也没有找到任何更好的例子来验证模板。 Can someone help me to start this?有人可以帮我开始吗? Any help would be appreciated.任何帮助,将不胜感激。 Thanks Below is my postman to get access token.谢谢下面是我的邮递员来获取访问令牌。

在此处输入图片说明

You can use Azure AD REST API and consider it as an external app that needs to get a token from Azure AD in order to have its requests authorized.您可以使用 Azure AD REST API 并将其视为需要从 Azure AD 获取令牌以授权其请求的外部应用程序。

https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code

I'm not aware of any existing samples, and the only official documentation that I've seen on AWS Azure integration is this one .我不知道任何现有示例,我在 AWS Azure 集成中看到的唯一官方文档就是这个

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM