API Gateway LAMBDA AUTHORIZER (Custom Authorizer) | REST APIs | .NET ON AWS | AWS Serverless

  Рет қаралды 10,425

Rahul Nath

Rahul Nath

Күн бұрын

Hey 👋🏽When building serverless APIs with AWS Lambda and API Gateway, one of the most critical questions is how to secure the API.
Lambda Authorizers are a feature provided by API Gateway that helps us separate the authentication logic from our business logic in our function code.
In this video, we will learn about Lambda Authorizers in Amazon API Gateway, how to build one using .NET and how to set it up with API Endpoints. We will look into the different types of custom authorizers, how to cache authorizer responses, and also how to pass data from the authorizer to our Functions containing business logic.
This video is sponsored by AWS and is part of the .NET on AWS Series.
00:00 - Introduction
03:51 - Lambda Authorizer
04:43 - Adding Lambda Function
09:49 - Setup API Lambda Authorizer
13:08 - Validate Request Headers
15:41 - Validate Token In Lamda Function
23:52 - Test Authorizer
25:10 - Authorize POST Endpoint
27:09 - Caching
29:45 - Caching & Policy Conflicts
32:18 - Context Parameters
37:34 - Request Authorizer Type
41:53 - Conclusion
🔗Blog Post - www.rahulpnath.com/blog/aws-d...
🔗Lambda Authorizers - docs.aws.amazon.com/apigatewa...
🔗 Postman - www.postman.com/
🔗JSON Web Token Builder - jwtbuilder.jamiekurtz.com/
Additional Watching
📹API Gateway REST API - Lambda Integration • AWS LAMBDA Proxy Integ...
📹Amazon API GATEWAY - Introduction To REST APIs - • Amazon API GATEWAY - I...
📹AWS API Gateway - HTTP API - • Amazon API GATEWAY - H...
📹AWS Lambda - • AWS LAMBDA For The .NE...
📹AWS DynamoDB - • AWS DynamoDB For The ....
📹AWS Series - • .NET on AWS
📹ASP NET Core Series - • ASP.NET Core
Come say hi! ✋
🌍 Blog - rahulpnath.com/
✉ Subscribe to my Newsletter - www.rahulpnath.com/subscribe
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
🛠️ Uses rahulpnath.com/uses
🎥 Recording Setup and Workflow - www.rahulpnath.com/blog/youtu...

Пікірлер: 31
@shivangigarambha4981
@shivangigarambha4981 Жыл бұрын
Great video. Everything related to the custom authorizer is explained in detail with the demo.
@RahulNath
@RahulNath Жыл бұрын
Thank you Shivangi! Do check out the full AWS Series here bit.ly/aws-net-series
@MarianoGomezBidondo
@MarianoGomezBidondo Жыл бұрын
Hi raul, as always, your videos are impeccable. They last long enough to include all the dirty details that often are what make something work or not. Congratulations!
@RahulNath
@RahulNath Жыл бұрын
Thank you very much! 😀
@pardhasaradhivasamsetty7693
@pardhasaradhivasamsetty7693 Жыл бұрын
Hi Rahul, I have been following your videos and they are awesome. Gaining good knowledge and they are vary useful. Thank you.
@RahulNath
@RahulNath Жыл бұрын
Thank you Pardhasaradhi and glad they are helping. I also have associated blog posts over at www.rahulpnath.com . Do let know if you have topic suggestions or feedback.
@proxima6522
@proxima6522 Жыл бұрын
Thank you. This is exactly what I was looking for
@RahulNath
@RahulNath 11 ай бұрын
Glad it was helpful!
@dailytech3785
@dailytech3785 2 жыл бұрын
Hey Rahul, once again awesome video, enough content
@RahulNath
@RahulNath 2 жыл бұрын
Glad you liked it!
@rahulsalunke176
@rahulsalunke176 11 ай бұрын
Great knowledge article Rahul, thanks for sharing it
@RahulNath
@RahulNath 11 ай бұрын
Glad you liked it! Hope you are enjoying the AWS Series bit.ly/aws-net-series
@cloud_architector
@cloud_architector 2 жыл бұрын
Hi, would be nice to see Cognito example. Thank you
@RahulNath
@RahulNath 2 жыл бұрын
Good suggestion, have it in my list. 👍
@markosea1023
@markosea1023 Жыл бұрын
Can a Lambda authorizer work with scopes? Like, don't authorize the request if the scope doesn't match the allowed scope for a resource?
@rahulsalunke176
@rahulsalunke176 11 ай бұрын
Do you believe that lambda authoriser along with a lambda for business code would double the cold start issue? Any workaround if you can suggest would be helpful
@TechPisat
@TechPisat Жыл бұрын
Hi its great video, Can any one from your side create API for my RDS?
@vinayakshettar9529
@vinayakshettar9529 Жыл бұрын
Hi rahul great video cheers .. Can I pass token from authorizer to lambda?
@RahulNath
@RahulNath Жыл бұрын
Glad you liked it Vinayak. I think the same request gets passed on, so you should be able to. What are you trying to achieve? Do checkout the full AWS Series here bit.ly/aws-net-series
@OvRaf
@OvRaf Жыл бұрын
For Http API gateway I ran into issue when $request.header.Authorization from "Identity Source" is not passed to request.AuthorizationToken of APIGatewayCustomAuthorizerRequest request object. In postman I setup header (base64 basic auth) "Authorization": "Basic xxxxxxx..." In Authorizer settings on aws portal I have $request.header.Authorization Appreciate any hint
@andrescastillo4078
@andrescastillo4078 Жыл бұрын
Hello, thanks for your videos, Can I use the api keys from the api gateway plus a custom authorizer? One is for the web app and the custom authorizer for the JWT validation. When I add the custom authorizer it does not need the api key anymore.
@RahulNath
@RahulNath Жыл бұрын
yes in the custom authorizer you can ignore authorizing if request already has a api key. Does that help you?
@andrescastillodf
@andrescastillodf Жыл бұрын
@@RahulNath thanks for your help, my custom authorizer was not set properly. After fixing it, it need to pass both to proceed. It works as expected.
@RahulNath
@RahulNath Жыл бұрын
@@andrescastillodf Glad you sorted it out!
@SS-hp4op
@SS-hp4op Жыл бұрын
Is it possible to use lambda authorizer with fargate based API gateway?
@RahulNath
@RahulNath Жыл бұрын
Not sure about that, I haven't used it for that.
@cloud_architector
@cloud_architector 2 жыл бұрын
Hi, missed your videos for some time, now I see you did a course, usually I buy for 10-12$ Can you make a coupon code for this price?
@RahulNath
@RahulNath 2 жыл бұрын
Thank you Denys - Here's a coupon that gives 33% off. www.udemy.com/course/aws-lambda-dotnet/?couponCode=AWS-LAMBDA-JULY Hope that takes it to that range?
@cloud_architector
@cloud_architector 2 жыл бұрын
@@RahulNath Thank you, will leave a good feedback I have a business account from job, but course is not available there.. would be nice
@RahulNath
@RahulNath 2 жыл бұрын
@@cloud_architector Thank you !! I guess that's a Udemy thing to pick/choose courses into the Business account business-support.udemy.com/hc/en-us/articles/115005228467-How-do-I-Suggest-a-Course-
@RahulNath
@RahulNath 2 жыл бұрын
Thank you for buying and leaving a review 👍😀
ТЫ С ДРУГОМ В ДЕТСТВЕ😂#shorts
01:00
BATEK_OFFICIAL
Рет қаралды 6 МЛН
I'm Excited To see If Kelly Can Meet This Challenge!
00:16
Mini Katana
Рет қаралды 30 МЛН
Sigma girl and soap bubbles by Secret Vlog
00:37
Secret Vlog
Рет қаралды 15 МЛН
Secure API Gateway using Lambda Authorizer (NEW)
33:32
LoveToCode
Рет қаралды 22 М.
Use JWT Authorizers with Amazon Cognito and API Gateway
13:48
Focus Otter
Рет қаралды 51 М.
Cancellation Token in .NET | Exploring C# and DOTNET
18:42
Rahul Nath
Рет қаралды 4,9 М.
AWS X-RAY | .NET ON AWS | AWS Serverless | Amazon
31:19
Rahul Nath
Рет қаралды 4,4 М.
Olha o sorvete 😲
0:13
KaLu Tv
Рет қаралды 4,4 МЛН
Rajesh ka flying dance 😂
0:11
Rajesh Kumar Shorts 14
Рет қаралды 28 МЛН
She guess best choice of sweets from her boyfriend 😋😅😎
0:29
Son ❤️ #shorts by Leisi Show
0:41
Leisi Show
Рет қаралды 8 МЛН
Survive 100 Days In Nuclear Bunker, Win $500,000
32:21
MrBeast
Рет қаралды 117 МЛН