{"id":8251,"date":"2022-06-08T06:19:19","date_gmt":"2022-06-07T21:19:19","guid":{"rendered":"https:\/\/yumishin.com\/?p=8251"},"modified":"2022-06-08T06:19:19","modified_gmt":"2022-06-07T21:19:19","slug":"devise","status":"publish","type":"post","link":"https:\/\/yumishin.com\/?p=8251","title":{"rendered":"\u3010Rails\u301110\u500b\u306edevise\u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u6982\u8981"},"content":{"rendered":"<h2 id=\"i-0\">\u3010Rails\u3011devise\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3064\u3044\u3066<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/DatabaseAuthenticatable\" rel=\"nofollow\">Database Authenticatable<\/a>: hashes and stores a password in the database to validate the authenticity of a user while signing in. The authentication can be done both through POST requests or HTTP Basic Authentication.\n<ul>\n<li>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u4fdd\u5b58\u3055\u308c\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3066\u3001\u30e6\u30fc\u30b6\u304c\u672c\u5f53\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/li>\n<li>\u3053\u308c\u3092\u4f7f\u308f\u306a\u3044\u306a\u3089\u3001devise\u3092\u5165\u308c\u308b\u610f\u5473\u304c\u3042\u308b\u306e\u304b\u306a\uff1f\uff1f\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u308c\u304f\u3089\u3044\u30b9\u30bf\u30f3\u30c0\u30fc\u30c9\uff1f<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Omniauthable\" rel=\"nofollow\">Omniauthable<\/a>: adds OmniAuth (<a href=\"https:\/\/github.com\/omniauth\/omniauth\">https:\/\/github.com\/omniauth\/omniauth<\/a>) support.\n<ul>\n<li>Twitter\u3067\u30ed\u30b0\u30a4\u30f3\u3068\u304b\u3001Facebook\u3067\u30ed\u30b0\u30a4\u30f3\u3068\u304b\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u3046\u3044\u3063\u305fSNS\u8a8d\u8a3c\u3092\u8ffd\u52a0\u3059\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Confirmable\" rel=\"nofollow\">Confirmable<\/a>: sends emails with confirmation instructions and verifies whether an account is already confirmed during sign in.\n<ul>\n<li>\u65b0\u3057\u304f\u30e6\u30fc\u30b6\u3092\u767b\u9332\u3059\u308b\u3068\u304d\u306b\u3001\u30e1\u30fc\u30eb\u8a8d\u8a3c\u3092\u4f7f\u3046\u5834\u5408\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3059\u3002<\/li>\n<li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3067\u60c5\u5831\u3092\u901a\u77e5\u3059\u308b\u3068\u304d\u306a\u3069\u3001\u3042\u3089\u304b\u3058\u3081\u4f7f\u3048\u308b\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3057\u305f\u3044\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Recoverable\" rel=\"nofollow\">Recoverable<\/a>: resets the user password and sends reset instructions.\n<ul>\n<li>\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30ea\u30bb\u30c3\u30c8\u6a5f\u80fd\u3092\u5b9f\u88c5\u3059\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Registerable\" rel=\"nofollow\">Registerable<\/a>: handles signing up users through a registration process, also allowing them to edit and destroy their account.\n<ul>\n<li>\u30e6\u30fc\u30b6\u306e\u65b0\u898f\u767b\u9332\u51e6\u7406\u3092\u884c\u3063\u3066\u3001\u30e6\u30fc\u30b6\u767b\u9332\u3059\u308b\u6642\u306b\u4f7f\u3044\u307e\u3059\u3002<\/li>\n<li>\u30e6\u30fc\u30b6\u306eCRUD\u306a\u3069\u3082\u3001devise\u3067\u5b9f\u88c5\u3059\u308b\u5834\u5408\u306f\u3001\u3053\u3061\u3089\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<li>\u203b\u30e6\u30fc\u30b6\u306eCRUD\u306f\u81ea\u524d\u3067\u5b9f\u88c5\u3059\u308b\u3068\u3044\u3046\u3068\u304d\u306a\u3069\u306f\u3001\u3053\u3061\u3089\u306f\u4f7f\u7528\u3057\u307e\u305b\u3093\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Rememberable\" rel=\"nofollow\">Rememberable<\/a>: manages generating and clearing a token for remembering the user from a saved cookie.\n<ul>\n<li>\u30d6\u30e9\u30a6\u30b6\u306e\u30af\u30c3\u30ad\u30fc\u306b\u30e6\u30fc\u30b6\u306e\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3092\u4fdd\u6301\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Trackable\" rel=\"nofollow\">Trackable<\/a>: tracks sign in count, timestamps and IP address.\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u56de\u6570\u3001\u30ed\u30b0\u30a4\u30f3\u65e5\u6642\u3001\u30ed\u30b0\u30a4\u30f3IP\u30a2\u30c9\u30ec\u30b9\u306a\u3069\u3092\u4fdd\u6301\u3059\u308b\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Timeoutable\" rel=\"nofollow\">Timeoutable<\/a>: expires sessions that have not been active in a specified period of time.\n<ul>\n<li>\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u307e\u307e\u3001\u4e00\u5b9a\u6642\u9593\u7d4c\u3064\u3068\u81ea\u52d5\u3067\u30ed\u30b0\u30a2\u30a6\u30c8\u3055\u305b\u308b\u3068\u304d\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u306f30\u5206\u3067\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Validatable\" rel=\"nofollow\">Validatable<\/a>: provides validations of email and password. It\u2019s optional and can be customized, so you\u2019re able to define your own validations.\n<ul>\n<li>\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3084\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/li>\n<li>\u3082\u3061\u308d\u3093\u72ec\u81ea\u306e\u30d0\u30ea\u30c7\u30fc\u30b7\u30e7\u30f3\u3082\u8ffd\u52a0\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"http:\/\/www.rubydoc.info\/github\/heartcombo\/devise\/main\/Devise\/Models\/Lockable\" rel=\"nofollow\">Lockable<\/a>: locks an account after a specified number of failed sign-in attempts. Can unlock via email or after a specified time period.\n<ul>\n<li>\u6307\u5b9a\u3057\u305f\u56de\u6570\u30ed\u30b0\u30a4\u30f3\u306b\u5931\u6557\u3059\u308b\u3068\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u30ed\u30c3\u30af\u3057\u307e\u3059\u3002<\/li>\n<li>\u56de\u6570\u306f\u6307\u5b9a\u3067\u304d\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3010Rails\u3011devise\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u306b\u3064\u3044\u3066 Database Authenticatable: hashes and stores a password in the database to validate the &#8230; <\/p>\n","protected":false},"author":1,"featured_media":8252,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[256],"tags":[],"class_list":["post-8251","post","type-post","status-publish","format-standard","has-post-thumbnail","category-it","entry"],"_links":{"self":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/8251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8251"}],"version-history":[{"count":1,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/8251\/revisions"}],"predecessor-version":[{"id":8253,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/posts\/8251\/revisions\/8253"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=\/wp\/v2\/media\/8252"}],"wp:attachment":[{"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yumishin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}