<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>int128</author_name>
  <author_url>https://blog.hatena.ne.jp/int128/</author_url>
  <blog_title>GeekFactory</blog_title>
  <blog_url>https://int128.hatenablog.com/</blog_url>
  <categories>
    <anon>spring</anon>
  </categories>
  <description>Spring Security OAuthでアクセストークンの取得に失敗した場合のリトライを設計するため、エラーケースと例外の対応を調べてみました。 アクセストークンの取得をリトライするには以下の2つの方法があります。 アクセストークン取得（AccessTokenProvider#obtainAccessToken）をリトライする。 ClientHttpRequestInterceptor でHTTPリクエストをリトライする。 前者の場合、失敗の原因にかかわらず OAuth2AccessDeniedException が発生するので、 OAuth2AccessDeniedException に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2017%2F07%2F26%2F212327&quot; title=&quot;Spring Security OAuthにおけるアクセストークン取得失敗時の例外 - GeekFactory&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-26 21:23:27</published>
  <title>Spring Security OAuthにおけるアクセストークン取得失敗時の例外</title>
  <type>rich</type>
  <url>https://int128.hatenablog.com/entry/2017/07/26/212327</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
