简体   繁体   中英

AWS: Where to find a API Gateway custom authoriser's ID?

Im building a serverless backend for my project using the following AWS technologies:

  • Lambda, implemented the python framework Chalice
  • API gateway
  • Cognito

I have created a custom authoriser that intercepts all API calls and validates authorisation. I want to connect a view function to the authoriser. According to documentation this is done the following way:

@app.route('/authenticated', methods=['GET'], authorization_type='CUSTOM', authorizer_id='ab12cd')
def authenticated():
    return {"secure": True}

Question: Where can I find my authorisers id?

The following image is the only information I have about my custom authoriser from the API Gateway console:

在此处输入图片说明

After hours of searching, I finally found the answer. The ID is located at in the "breadcrumbs" on the console. I've censored the actual ID out, but you get the idea.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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