1

Cherrypyのテストを確認すると、test_auth_basic.pyに次のconfがあることがわかります。

'tools.auth_basic.on': True,
'tools.auth_basic.realm': 'wonderland',
'tools.auth_basic.checkpassword': checkpasshash

しかし、ファイルtest_httpauth.pyは次のことを示しています。

'tools.basic_auth.on': True,
'tools.basic_auth.realm': 'localhost',
'tools.basic_auth.users': fetch_password,
'tools.basic_auth.encrypt': sha_password_encrypter}}

それらのツールの違いは何ですか?両方とも基本認証を実装していますか?もしそうなら、なぜ2つの異なるツールが非推奨になるのですか?

4

1 に答える 1

0

私は誤って私の質問に答えるこのリンクにぶつかりました。basic_authは廃止され、auth_basicが採用されました。

于 2013-03-18T20:36:26.897 に答える