---
description: How to set your API methods to use your custom authorizer
---

# AWS Part 3: Secure the API Using Custom Authorizers

In [part 1](/integrations/aws-api-gateway-2/part-1), you configured an API using API Gateway, and in [part 2](/integrations/aws-api-gateway-2/part-2), you created the custom authorizer that can be used to retrieve the appropriate policies when your API receives an access request. In this part of the tutorial, we will show you how to use the custom authorizer to secure your API's endpoints.
---
description: How to set your API methods to use your custom authorizer
---

# AWS Part 3: Secure the API Using Custom Authorizers

In [part 1](/integrations/aws-api-gateway-2/part-1), you configured an API using API Gateway, and in [part 2](/integrations/aws-api-gateway-2/part-2), you created the custom authorizer that can be used to retrieve the appropriate policies when your API receives an access request. In this part of the tutorial, we will show you how to use the custom authorizer to secure your API's endpoints.

## Configure API Gateway Resources to use the Custom Authorizer

Log in to AWS and navigate to the [API Gateway Console](http://console.aws.amazon.com/apigateway).

![](/media/articles/integrations/aws-api-gateway-2/part-3/pt3-1.png)

::: note
Custom authorizers are set on a method by method basis; if you want to secure multiple methods using a single authorizer, you'll need to repeat the following instructions for each method.
:::

Open the **PetStore** API we created in [part 1](/integrations/aws-api-gateway-2/part-1) of this tutorial. Under the **Resource** tree in the center pane, select the **GET** method under the `/pets` resource.

![](/media/articles/integrations/aws-api-gateway-2/part-3/pt3-2.png)

Select **Method Request**.

![](/media/articles/integrations/aws-api-gateway-2/part-3/pt3-3.png)

Under **Settings**, click the **pencil** icon to the right **Authorization** and choose the `jwt-rsa-custom-authorizer` custom authorizer you created in [part 2](/integrations/aws-api-gateway-2/part-2). 

![](/media/articles/integrations/aws-api-gateway-2/part-3/pt3-4.png)

Click the **check mark** icon to save your choice of custom authorizer. Make sure the **API Key Required** field is set to `false`.

![](/media/articles/integrations/aws-api-gateway-2/part-3/pt3-5.png)

Add second part of part 3
Add second part of part 3
