<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>furu07yu</author_name>
  <author_url>https://blog.hatena.ne.jp/furu07yu/</author_url>
  <blog_title>行動すれば次の現実</blog_title>
  <blog_url>https://furu07yu.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Devise</anon>
  </categories>
  <description>email以外のキーを使った認証方法について、devise単体では同じような記事がいくつもありましたが、devise-token-authを交えた記事があまりなかったので作成しました。 How To: Allow users to sign in using their username or email address · heartcombo/devise Wiki · GitHub 上記の記事等を参考にしましたが、devise-token-auth側でdevise本体の挙動が色々とオーバーライドされており、そのままの設定では動作しない部分がありました。 右往左往しましたが、結果的には思っ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffuru07yu.hatenadiary.jp%2Fentry%2Fhow-to-allow-signin-username-or-email&quot; title=&quot;devise-token-authでemailではなくusernameでもログインさせる方法 - 行動すれば次の現実&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/f/furu07yu/20220805/20220805162546.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-05 16:26:40</published>
  <title>devise-token-authでemailではなくusernameでもログインさせる方法</title>
  <type>rich</type>
  <url>https://furu07yu.hatenadiary.jp/entry/how-to-allow-signin-username-or-email</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
