# Send user to Auth0 Login in AWS Lambda Function | Api Gateway with Custom Authorizer

**URL:** <https://community.auth0.com/t/send-user-to-auth0-login-in-aws-lambda-function-api-gateway-with-custom-authorizer/50410>\
**Category:** Get Help\
**Tags:** aws, api, lambda, login, auth0\
**Created:** [September 25, 2020, 2:51am UTC](https://community.auth0.com/t/send-user-to-auth0-login-in-aws-lambda-function-api-gateway-with-custom-authorizer/50410 "2020-09-25T02:51:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wajeehulhassan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/wajeehulhassan/32/24317_2.png) [@wajeehulhassan](https://community.auth0.com/u/wajeehulhassan)\
**Post date:** [September 25, 2020, 2:51am UTC](https://community.auth0.com/t/send-user-to-auth0-login-in-aws-lambda-function-api-gateway-with-custom-authorizer/50410/1 "2020-09-25T02:51:48Z")

</div>

Hi! I want to put authentication at AWS Api Gateway for which I attached the Custom Authorizer to the AWS Api Gateway. However I couldn’t figure out how to send user to the login screen if they are not authorized and how to retrieve their access token if they get authenticated. If you could help me then it would be great.
