<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>motemen</author_name>
  <author_url>https://blog.hatena.ne.jp/motemen/</author_url>
  <blog_title>詩と創作・思索のひろば</blog_title>
  <blog_url>https://motemen.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>よくあるフローってのは Google の API ドキュメントを読んでたらよくでてくるやつ（Calendar API の例）。つまり: 前回のアクセストークンが保存されていたらそれを使い、なかったら localhost にサーバを立て、redirect_uri をそこに設定した認可のための URL をユーザに提示し、 code を受け取ったらアクセストークンと交換し、 トークンを保存する。 みたいな一連の流れ。これまでどの部分を抽象化したらいいのかあまり感覚がわからなくて手を出してなかったんだけど、いいかげん面倒なので書いてみた次第。 oauth2util package - github.c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmotemen.hatenablog.com%2Fentry%2F2022%2F06%2Fgo-nuts-oauth2util&quot; title=&quot;OAuth2 のよくあるフローを何回も書きたくない #Go - 詩と創作・思索のひろば&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>2022-06-05 09:00:00</published>
  <title>OAuth2 のよくあるフローを何回も書きたくない #Go</title>
  <type>rich</type>
  <url>https://motemen.hatenablog.com/entry/2022/06/go-nuts-oauth2util</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
