annotate Lib/IMPL/Security/Auth.pm @ 51:a1498298d3ee

Security in progress
author wizard@linux-odin.local
date Mon, 01 Mar 2010 17:25:36 +0300
parents
children 15d720913562
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
51
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
1 package IMPL::Security::Auth;
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
2
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
3 use constant {
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
4 SUCCESS => 1,
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
5 INCOMPLETE => 2,
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
6 FAIL => 3
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
7 };
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
8
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
9 use base qw(Exporter);
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
10
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
11 our @EXPORT_OK = qw(&SUCCESS &INCOMPLETE &FAI);
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
12 our %EXPORT_TAGS = (Const => [qw(&SUCCESS &INCOMPLETE &FAI)]);
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
13
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
14 1;
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
15
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
16 __END__
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
17
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
18 =pod
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
19
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
20 =head1 DESCRIPTION
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
21
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
22 Базовыйы модуль для авторизации пользователей.
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
23
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
24 Процесс авторизации состоит зи следующих шагов
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
25
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
26 1. Клиент отправляет на сервер запрос для авторизации с начальными параметрами.
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
27 2. Сервер получает запрос, находит данные аутентификации для клиента,
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
28 производит аутентификацию
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
29 3. Модуль аутентификации возвращает результат, на основе которого
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
30 либо формируется контекст безопасности, либо продолжается процесс аутентификации
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
31
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
32 Полученный контекст безопасности содержит объект для доступа к сессии аутентификации,
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
33 в которм содержится уникальные свойства сессии, например идентификатор, сеансовые ключи
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
34 и т.д.
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
35
a1498298d3ee Security in progress
wizard@linux-odin.local
parents:
diff changeset
36 =cut