<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanahebiZ</author_name>
  <author_url>https://blog.hatena.ne.jp/kanahebiZ/</author_url>
  <blog_title>もふもふ技術部</blog_title>
  <blog_url>https://www.mof-mof.co.jp/tech-blog/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>deviseを使ったユーザー認証はとても便利ですが、カスタマイズをしたいときや、APIモードで使う時には不便なことがあります。 そこで今回は、deviseを使わない自前のユーザー認証を実装します。 下準備 1. Gemfileに使用するGemを追加します （Gemfileの中でコメントアウトしてあるかと思います。） gem &quot;bcrypt&quot;, &quot;~&gt; 3.1.7&quot; 2. bundle install します 3. Userモデルを作成します $ rails g model user 20240712000000_create_users.rb class CreateUsers &lt; Activ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.mof-mof.co.jp%2Ftech-blog%2F2024%2F07%2F12%2F182916&quot; title=&quot;【Rails】deviseを使わない自前のユーザー認証 - もふもふ技術部&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>2024-07-12 18:29:16</published>
  <title>【Rails】deviseを使わない自前のユーザー認証</title>
  <type>rich</type>
  <url>https://www.mof-mof.co.jp/tech-blog/2024/07/12/182916</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
