LoginSignup
0
0

More than 1 year has passed since last update.

いまさら調査するCakephp2の認証ロジック

Posted at

移行プログラムの作成過程でCakephp2の認証がどうなってるか調べる機会があったため、調査しました。
メモ程度ですが参考になれば幸いです。

参考メモ

引用
App::uses('SimplePasswordHasher', 'Controller/Component/Auth');

()

        //認証情報(モデルやハッシュ化ルール)
            'authenticate' => array(
                'Form' => array(
                    'userModel' => 'User',
                    'fields' => array(
                        'username' => 'account',
                    ),
                    'passwordHasher' => array(
                        'className' => 'Simple',
                        'hashType' => 'sha256'
                    )
                )
            )
  • SimplePasswordHasher を使ってる前提
    • SimplePasswordHasherの実体
      vendors/cakephp/cakephp/lib/Cake/Controller/Component/Auth/SimplePasswordHasher.php
      ここデバッグすれば、実際の動きわかる。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0