<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Apigateway on Geoff Baskwill</title>
    <link>https://geoffbaskwill.ca/tags/apigateway/</link>
    <description>Geoff Baskwill (Apigateway)</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-ca</language>
    <lastBuildDate>Wed, 30 Mar 2022 00:00:00 +0000</lastBuildDate>
    
    <atom:link href="https://geoffbaskwill.ca/tags/apigateway/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Enriching Amazon Cognito features with an Amazon API Gateway proxy</title>
      <link>https://geoffbaskwill.ca/posts/enriching-cognito-features-with-apigateway/</link>
      <pubDate>Wed, 30 Mar 2022 00:00:00 +0000</pubDate>
      
      <guid>https://geoffbaskwill.ca/posts/enriching-cognito-features-with-apigateway/</guid>
      <description>&lt;p&gt;I read a great post about &lt;a href=&#34;https://aws.amazon.com/blogs/security/protect-public-clients-for-amazon-cognito-by-using-an-amazon-cloudfront-proxy/&#34;&gt;protecting Amazon Cognito with an Amazon CloudFront proxy&lt;/a&gt; and wondered if using an Amazon API Gateway proxy instead would work better.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;images/architecture.png&#34; alt=&#34;&#34; title=&#34;Amazon Cognito protected by a proxy function that rewrites requests using the client secret after they have passed through AWS WAF and Amazon API Gateway for rate limiting and other preventative controls.&#34;&gt;&lt;/p&gt;
&lt;p&gt;It really really did. Being able to use the full power of Lambda was fantastic, and the performance was improved significantly.&lt;/p&gt;
&lt;p&gt;This approach also let us quickly implement a few tiny features that Cognito doesn&amp;rsquo;t have yet, like server-side attribute validation and user lifecycle events.&lt;/p&gt;
&lt;p&gt;I got in touch with the author of the original post and he was generous enough to offer a collaboration on a follow-up post on the AWS architecture blog.&lt;/p&gt;
&lt;p&gt;Check out &lt;a href=&#34;https://aws.amazon.com/blogs/architecture/enriching-amazon-cognito-features-with-an-amazon-api-gateway-proxy/&#34;&gt;the full post&lt;/a&gt; for all the details.&lt;/p&gt;
</description>
    </item>
    
  </channel>
</rss>
