2121> ** _ NOTE:_ ** Code porting to PHP 8.1 ongoing.
2222
2323# About
24- This package provide a concrete implementation for authentication interfaces and
24+ This package provide a concrete implementation for the authentication interfaces and
2525for the authorization interfaces of the framework.
2626
2727Mappers use as persistent storage postgresql through php pdo.
@@ -31,7 +31,7 @@ Mappers use as persistent storage postgresql through php pdo.
3131 * PHP >= 8.1
3232 * PDO extension
3333 * Postgresql extension
34- * linna/framework v0.27.0
34+ * linna/framework v0.28.0|next
3535
3636# Installation
3737With composer:
@@ -40,18 +40,85 @@ composer require linna/auth-mapper-pgsql
4040```
4141
4242# Package Content
43- Implementation of framework interfaces:
43+
44+ ### Interfaces from Framework
4445* ` Linna\Authentication\EnhancedAuthenticationMapperInterface `
45- * ` Linna\Authentication\UserMapperInterface `
46- * ` Linna\Authorization\EnhancedUserMapperInterface `
46+ * ` Linna\Authorization\PermissionExtendedMapperInterface `
4747* ` Linna\Authorization\PermissionMapperInterface `
48+ * ` Linna\Authorization\RoleExtendedMapperInterface `
4849* ` Linna\Authorization\RoleMapperInterface `
49- * ` Linna\Authorization\RoleToUserMapperInterface `
50+ * ` Linna\Authorization\UserExtendedMapperInterface `
51+ * ` Linna\Authorization\UserMapperInterface `
5052
51- As:
53+ ### Implementation
5254* ` Linna\Authentication\EnhancedAuthenticationMapper `
53- * ` Linna\Authentication\UserMapper `
54- * ` Linna\Authorization\EnhancedUserMapper `
55+ - deleteOldLoginAttempts()
56+ - fetchAll()
57+ - fetchAttemptsWithSameIp()
58+ - fetchAttemptsWithSameSession()
59+ - fetchAttemptsWithSameUser()
60+ - fetchById()
61+ - fetchLimit()
62+ * ` Linna\Authorization\PermissionExtendedMapper `
5563* ` Linna\Authorization\PermissionMapper `
64+ - fetchAll()
65+ - fetchById()
66+ - fetchByName()
67+ - fetchByRole()
68+ - fetchByRoleId()
69+ - fetchByRoleName()
70+ - fetchByUser()
71+ - fetchByUserId()
72+ - fetchByUserName()
73+ - fetchLimit()
74+ - fetchUserPermissionHashTable()
75+ - permissionExistById()
76+ - permissionExistByName()
77+ * ` Linna\Authorization\RoleExtendedMapper `
78+ - addUser()
79+ - addUserById()
80+ - addUserByName()
81+ - grantPermission()
82+ - grantPermissionById()
83+ - grantPermissionByName()
84+ - removeUser()
85+ - removeUserById()
86+ - removeUserByName()
87+ - revokePermission()
88+ - revokePermissionById()
89+ - revokePermissionByName()
5690* ` Linna\Authorization\RoleMapper `
57- * ` Linna\Authorization\RoleToUserMapper `
91+ - fetchAll()
92+ - fetchById()
93+ - fetchByName()
94+ - fetchByPermission()
95+ - fetchByPermissionId()
96+ - fetchByPermissionName()
97+ - fetchByUser()
98+ - fetchByUserId()
99+ - fetchByUserName()
100+ - fetchLimit()
101+ * ` Linna\Authorization\UserExtendedMapper `
102+ - addRole()
103+ - addRoleById()
104+ - addRoleByName()
105+ - grantPermission()
106+ - grantPermissionById()
107+ - grantPermissionByName()
108+ - removeRole()
109+ - removeRoleById()
110+ - removeRoleByName()
111+ - revokePermission()
112+ - revokePermissionById()
113+ - revokePermissionByName()
114+ * ` Linna\Authorization\UserMapper `
115+ - fetchAll()
116+ - fetchById()
117+ - fetchByName()
118+ - fetchByPermission()
119+ - fetchByPermissionId()
120+ - fetchByPermissionName()
121+ - fetchByRole()
122+ - fetchByRoleId()
123+ - fetchByRoleName()
124+ - fetchLimit()
0 commit comments