Gungho::Component::Authentication - Gungho認証親クラス
package MyAuth; use base qw(Gungho::Component::Authentication);
Gungho::Component::AuthenticationはWWW認証の親クラスとして使用されます。
HTTPレスポンスのヘッダーを確認し、UnauthorizedやProxy Authentication Required 等が返ってきている場合はauthenticate()を呼んで認証を行います
実際の認証を行います。継承クラスが実装を提供する必要があります。 認証が成功した場合は正を返し、失敗した場合は負を返します。
認証が失敗した場合に必要なHTTPリクエスト等もauthenticate()内で再ディスパッチ する必要があります。
authenticate()
HTTPレスポンスヘッダーに認証チャレンジが含まれているかどうか確認し、 必要なauthenticate()メソッドを呼び出します。
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Gungho認証親クラス'. Assuming UTF-8
To install Gungho, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gungho
CPAN shell
perl -MCPAN -e shell install Gungho
For more information on module installation, please visit the detailed CPAN module installation guide.