èªè¨¼ãæããªãã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãããèªè¨¼ã«å¯¾å¿ããããã¨æãã¨æ¡å¤é¢åã§ã¢ããã¼ã·ã§ã³ãç¡ããã¦ãã¾ããªãã¦äºãããèµ·ããã話ã§ããç¹ã«ç¤¾å åãã®ã¢ããªã±ã¼ã·ã§ã³ãä½ã£ã¦ãããæ¬çªã§ä½¿ãäºã«ãªã£ã¦ãã¾ã£ã¦ããªãã¦è©±ã¯è¯ããã話ã§ããéçºã§æ¬çª DB ãè¦ãã®ã¯ã¡ãã£ã¨...ãã§ãæ¢åã®ã³ã¼ããã´ãªã´ãªã¨è§¦ããããªãããããªå ´åã«ãã°ã¤ã³èªè¨¼é¨åã ããã¤ã¯ããµã¼ãã¹åã§ããã¨æ°æã¡ãå¹¾ååããã¾ããä»æ¥ã¯ãããªã¡ãã£ã¨ä¾¿å©ãªãµã¼ããloginsrvããç´¹ä»ãããã¨æãã¾ãã GitHub - tarent/loginsrv: JWT login microservice with plugable backends such as OAuth2, Github, htpasswd, osiam loginsrv is a standalone minimalistic login se
cancan gem ï¼!= CanCamï¼ ã¯ãã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ã®ãèªå¯ããã¤ããã©ãã©ã¤ãã©ãªã ããããWEBãµã¼ãã¹éçºæ¥è¨ã®railsã¡ã¢ â 2009-12-15 Rails3.0 㧠Devise 㨠CanCan ãåãã rails cancanã試ãã¦ã¿ã Rails3ã§ãã°ã¤ã³èªè¨¼(æçµå) ãã¼ã«ã¯cancan éè¦ãªã®ã¯ããèªè¨¼ãã§ã¯ãªããèªå¯ãã®ã¿ãåãæã£ã¦ããã¨ãããã¨ã§ãè¦ããã«æ¨©é管çã ãããé¢å¿äºãã¨ãã¦æã¤ã©ã¤ãã©ãªã§ããã¨ãããã¨ããããã£ã¦ãèªè¨¼å´ã¯ã devise ã§ãã warden + omniauth ã§ãã Railscast ã®ããã« authlogic ã§ããèªåå®è£ ã§ã大ä¸å¤«ã ã¨ãããã¨ããã¬ã¤ç®ã§ãã«ã¸ã¥ã¢ã«ãã¦ã³ããã¨ãã«ãã³ã¼ãã«ä½¿ããä¸è½ã¢ã¤ãã ã®ãããªãã®ã§ãããã èªè¨¼ã¨èªå¯ã®éã å½ããã°ã«ãã¦ã¯çãã Rai
ãã®ã¦ã§ããµã¤ãã¯è²©å£²ç¨ã§ãï¼ twiwt.org ã¯ãããªãããæ¢ãã®æ å ±ã®å ¨ã¦ã®ææ°ãã¤æé©ãªã½ã¼ã¹ã§ããä¸è¬ãããã¯ããããããæ¤ç´¢ã§ããå 容ã¯ãtwiwt.orgãå ¨ã¦ã¨ãªãã¾ããããªãããæ¢ãã®å 容ãè¦ã¤ãããã¨ãé¡ã£ã¦ãã¾ãï¼
co-meetingã§ã¯ã¦ã¼ã¶ç®¡çãDeviseããã¼ã¹ã«éçºãã¦ãã¾ãã éçºéç¨ã§Deviseã«ã¤ãã¦èª¿ã¹ããã¨ããä½åº¦ãã«åãã¦æ¸ãã¦ãããã¨æãã¾ãã Devise(http://rubygems.org/gems/devise)ã¨ã¯ãRailsã¢ããªã«ãã°ã¤ã³ã®ä»çµã¿ãçµã¿è¾¼ãå ´åã«ããã¡ã¯ãã¹ã¿ã³ãã¼ãã«ãªã£ã¦ããgemã§ãã¡ã¼ã«ã«ããã³ã³ãã¡ã¼ã ãªã©å¿ è¦ãªä»çµã¿ãæã£ã¦ãã¦é常ã«ä¾¿å©ã§ãã*1 Rails3ã®ã¤ã³ã¹ãã¼ã«ããããã¸ã§ã¯ãã®ä½æãDeviseã®ä½¿ãæ¹ã«ã¤ãã¦ã¯ä»¥ä¸ã®ãµã¤ãã§è©³ãã解説ããã¦ãã¾ãã http://www.oiax.jp/rails/rails3.html ãã¥ã¼ããªã¢ã«çã«ç¿å¾ãããªããã¡ãã®ãã¼ã¸ã®æ¹ãåèã«ãªãã¾ãã ããã§ã¯ãDeviseã®å°å ¥ãããç¬èªãã°ã¤ã³ã®ã¿ã®ã·ã¹ãã ã§Deviseã使ãã«å½ãã£ã¦æä½éå¿ è¦ã¨æãããè¨å®ã«ã¤ãã¦ã®ã¿
Warden ã¯ããªã好ãï¼Padrinoã¨ãããSinatraã§ã使ãããï¼ãã§ããåãDeviseã¯ããéãã ã¨æãæ´¾ã ãªã èªè¨¼é¢é£ã®ç»é¢é·ç§»ãURLã Devise ã®è¦ç´ã«ã´ã£ãããããã±ã¼ã¹ã£ã¦ããããªãã§ãç¨ã ã¨æãããã«ã¹ã¿ãã¤ãºããã¨ãªãã¨çµæ§ã½ã¼ã¹è¿½ããªãã¨ãããªããªã£ã¦çµå±ã ãã⦠env['warden'] ã«ä¸éãå ¥ã£ã¦ãã®ã¯ãå°ããã£ãæªããããããªããã©ä¾¿å©ã èªè¨¼ã¨ããªãã¤ã¬ã¯ãå¦çã¨ãã¬ã©ã±ã¼å¯¾å¿ã¨ããã¯ã¢ããªã±ã¼ã·ã§ã³æ¬ä½ã§ã¯ãªãRack Middleware ã§å®ç¾ããããªï½ã¨è¨ã facebook ã§ãããªãã¨ãã¤ã¶ãããã å㯠Rack ã¨ãã®é¢é£æè¡ãåã好ãã§ããã£ã¨åå¼·ãã人ãå¢ãã¦ã»ããã¨æã£ã¦ããã®ã ããä½ã§å¥½ããªã®ãã¨ããæ´çãã¦ã¿ãã Good Stuff çµå度ãä½ããªãããªã®ã§ï¼ Rackã§ã¨ããæ©è½ï¼èªè¨¼ãªã©ï¼ãå®ç¾ããã°ãã
Devise ã® README ã¯æåä¸å¯§ã ãããã®åã¯ã½é·ãã®ã§ãèªãã®ã«ç²ãããå¾ç¶ã®ããã«è¨³ãã¦ã¿ããã¨ã«ãããç¡ä¿è¨¼ãOAuth2 ã®é¨åã¯é£ã°ãããé·ãããå·®ãè¿«ã£ãã訳ãã¾ãã Devise Devise 㯠Warden ããã¼ã¹ã«ãã Rails ã®ããã®ãã¬ãã·ãã«ãªèªè¨¼ã½ãªã¥ã¼ã·ã§ã³ã§ãã Rackãã¼ã¹ Rails ã¨ã³ã¸ã³ã«åºã¥ããå®å ¨ãª MVC ã½ãªã¥ã¼ã·ã§ã³ 1åã®èªè¨¼ã§è¤æ°ã®ãã¼ã«ãæããããã¨ãã§ãã¾ã ããªããå¿ è¦ãªé¨åã ã使ããã¢ã¸ã¥ã©ã¼æ§é ã¨ããã³ã³ã»ããã«åºã¥ãã¦ãã¾ã 以ä¸ã®11ã®ã¢ã¸ã¥ã¼ã«ã§æ§æããã¦ãã¾ãï¼ Database Authenticatable ã¦ã¼ã¶ã¼ããµã¤ã³ã¤ã³ããæã«èªè¨¼ããããã«ãã¹ã¯ã¼ãããã¼ã¿ãã¼ã¹ã«æå·åãä¿åãã¾ãããã®èªè¨¼ã¯ POST ãªã¯ã¨ã¹ãã¾ãã¯Basicèªè¨¼ãéãã¦è¡ããã¾ãã Token Authenti
READMEãæ訳ï¼æ°ã«ãªã£ãã¨ããã調ã¹ã¦ãã£ããã¨ã¾ã¨ãã¾ãããèªåç¨ã®ã¡ã¢ã§ãã åºæ¬çã« ãã°ã¤ã³ï¼ãã°ã¢ã¦ãã®ç¶æ ã管çããã»ãã·ã§ã³ ã¦ã¼ã¶ã¢ãã«ã¸ã®èªè¨¼æ©è½ã®è¿½å ã®äºã¤ã®æ©è½ãå®ç¾©ããã¦ããã ãã°ã¤ã³ï¼ãã°ã¢ã¦ãã®ç¶æ ã管çããã»ãã·ã§ã³ ã¾ãã¯ã class UserSession < Authlogic::Session::Base end ã®ããã«ãAuthlogic::Session::Baseãç¶æ¿ãããã¢ãã«ãä½ã ãã°ã¤ã³æ¹æ³ ã¢ãã«ã¿ããã«ãcreateãsaveã¡ã½ããã§ãã°ã¤ã³ãããã¨ãåºæ¥ãã UserSession.create(:login => "bjohnson", :password => "my password", :remember_me => true) session = UserSession.new(:login => "bj
Railsã§Google Apps for your domainã«OpenIDèªè¨¼ããããµã³ãã«ã¢ããªãä½ãã¾ããã 以ä¸ããµã³ãã«ä½ææé ã§ãã ruby-openidã¨ruby-openid-apps-discoveryãã¤ã³ã¹ãã¼ã« >gem install ruby-openid >gem install ruby-openid-apps-discovery railsã¢ããªãä½ãã¾ã >rails gapps-openid app/controllers/consumer_controller.rbãä½æ require 'pathname' require "openid" require 'openid/extensions/ax' require 'openid/store/filesystem' require 'gapps_openid' class Consumer
Linuxã§ç¨¼åããã¦ããApacheã«ã¦èªè¨¼ãå¿ è¦ãªWebãµã¼ãã¹ã«ãWindowsãã¡ã¤ã³(Active Directory)ã®èªè¨¼æ å ±ã使ã£ã¦ãã·ã³ã°ã«ãµã¤ã³ãªã³ãå®ç¾ãããã¾ã§ã®æé ãåå¿é²ã¨ãã¦æ®ãã¦ããã¾ãã ä»åããã©ã¦ã¶ã¯ãIEã¨Firefoxã«ã¦åä½ç¢ºèªãè¡ãã¾ããã Windowsãã¡ã¤ã³ãã°ãªã³ããã¦ããã¯ã©ã¤ã¢ã³ããããä¸è¨2種é¡ã®ãã©ã¦ã¶ã使ãã¨ãNTLMèªè¨¼â»ãå©ç¨ãã¦ããWebãµã¼ãã¹ã«ã¯ãèªè¨¼æ¸ã¿ã®ãã¡ã¤ã³ãã°ãªã³ã®æ å ±ãå©ç¨ãããã¨ãã§ããã¦ã¼ã¶åããã¹ã¯ã¼ããå ¥åããå¿ è¦ã®ç¡ãã·ã³ã°ã«ãµã¤ã³ãªã³ç°å¢ãå®ç¾ã§ãã¾ãã â»NTLMèªè¨¼ï¼NT LAN Manager authenticationï¼ã¨ã¯ - ITç¨èªè¾å ¸ e-Words åæ ä»åå©ç¨ããæ§æã¯ä»¥ä¸ã®ãããªæãã Webãµã¼ã CentOS 5 Apache 2.2 + mod_auth_ntl
mod_wsgiã§éç¨ãã¦ããWSGIã¢ããªã±ã¼ã·ã§ã³å ããAuthorizationãããã¼(HTTP_AUTHORIZATION)ãåç §ããå ´åã«ã¯ãmod_wsgiã®WSGIPassAuthorizationãããã¼ãOnã«ãã¦ãããªãã¦ã¯ãªããªããããã©ã«ãã¯Offãªã®ã§ãä¾ãã°ãDjangoã¢ããªã±ã¼ã·ã§ã³ããã def view(req): auth_header = req.META.get("HTTP_AUTHORIZATION") # do something ã®ããã«ããã¨ã常ã«Noneãè¿ã£ã¦ããããã®ãããªè¨è¨ã«ãªã£ã¦ããçç±ã¯ãWSGIPassAuthorizationã®é ã«æ¸ãã¦ãããWSGIPassAuthorizationãã£ã¬ã¯ãã£ãã¯HTTPèªè¨¼ãããã¼ãHTTPãªã¯ã¨ã¹ãã«åå¨ããã¨ãã«ããã®å¤ãHTTP_AUTHORIZATIONå¤æ°ã¨ãã¦WSGIã¢
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}