<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ashphy22</author_name>
  <author_url>https://blog.hatena.ne.jp/ashphy22/</author_url>
  <blog_title>ashphy's commit logs</blog_title>
  <blog_url>https://ashphy.hateblo.jp/</blog_url>
  <categories>
    <anon>AWS</anon>
  </categories>
  <description>TL;DR AWS STS (Security Token Service) で AssumeRoleWithWebIdentity するとき、Auth0が発行したアクセストークンに含まれるaudクレームをSTSが正しく解釈することができずにエラーになる 解決法としてはIDトークンを用いるか、Lambda Authorizerを利用する 今回問題となるケース ここではサンプルとして、ユーザー認証をAuth0で行い、AWSのリソースにアクセスして結果を返すAPIを作成します。 フロントエンドの構築 まずはAuth0のQuickstartsを読んでAuth0のアプリ設定とフロントエンドの構築をしま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fashphy.hateblo.jp%2Fentry%2F2023%2F01%2F28%2F222740&quot; title=&quot;Auth0で発行したアクセストークンで直接AWS STSを叩いて一時的な認証情報を取得できない - ashphy&amp;#39;s commit logs&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/ashphy22/20230126/20230126225918.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-01-28 22:27:40</published>
  <title>Auth0で発行したアクセストークンで直接AWS STSを叩いて一時的な認証情報を取得できない</title>
  <type>rich</type>
  <url>https://ashphy.hateblo.jp/entry/2023/01/28/222740</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
