API Gateway和Auth0的集成的最佳实践是什么?

0

【以下的问题经过翻译处理】 我想要使用Auth0与API Gateway进行集成,并且正在寻找一些指导和最佳实践。有什么材料(文档,代码片段,博客,github链接等)可用吗?我认为我可能需要使用自定义授权者?

profile picture
ESPERTO
posta 5 mesi fa3 visualizzazioni
1 Risposta
0

【以下的回答经过翻译处理】 你是否计划在API Gateway中使用REST APIs或HTTP APIs?如果你打算使用Lambda授权程序,那么REST APIs和HTTP APIs是兼容的。你可以点击以下GitHub链接获取Lambda授权程序的蓝图: https://github.com/awslabs/aws-apigateway-lambda-authorizer-blueprints

你可以通过以下链接了解更多关于REST APIs和HTTP APIs之间兼容性的信息: https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-lambda-authorizer.html

如果你使用HTTP APIs,你也可以考虑使用JWT授权程序。以下是一个关于Auth0的很好的博客文章: https://auth0.com/blog/securing-aws-http-apis-with-jwt-authorizers/

另外,下面的博客文章提供了有关自定义授权程序和Auth0的更多信息: https://auth0.com/docs/integrations/aws-api-gateway-custom-authorizers

profile picture
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande