Skip to content

Commit e72f725

Browse files
authored
Spelling corrections
1 parent 082655e commit e72f725

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Table of Contents:
77
* [Who are Authenticated Users](#who-are-authenticated-users)
88
* [Accessing Users](#accessing-users)
99
* [Authorizers](#authorizers)
10-
* [Request Aware Auhtorizers](#request-aware-auhtorizers)
11-
* [Exception Aware Authorizers](#exception-aware-auhtorizers)
10+
* [Request Aware Authorizers](#request-aware-authorizers)
11+
* [Exception Aware Authorizers](#exception-aware-authorizers)
1212
* [Transports](#transports)
1313
* [Events](#events)
1414
* [Authentication Middlewares](#authentication-middlewares)
@@ -62,7 +62,7 @@ class MyUsersRepository implements \ActiveCollab\Authentication\AuthenticatedUse
6262

6363
Authorizers are used to authorize user credentials against data that is stored by a particular authentication service (stored users, LDAP/AD, IdP etc).
6464

65-
Key authorizer method is `verifyCredentials`. It receives an array with credentials and it is expected to return `ActiveCollab\Authentication\AuthenticatedUser\AuthenticatedUserInterface` instance on successful authorization, or `null` when auhtorization is not successful. Some implementations may decide to throw exceptions, to make a clear distinction between various reasons why authorization failed (user not found, invalid password, user account is temporaly or permanently suspended etc).
65+
Key authorizer method is `verifyCredentials`. It receives an array with credentials and it is expected to return `ActiveCollab\Authentication\AuthenticatedUser\AuthenticatedUserInterface` instance on successful authorization, or `null` when authorization is not successful. Some implementations may decide to throw exceptions, to make a clear distinction between various reasons why authorization failed (user not found, invalid password, user account is temporarily or permanently suspended etc).
6666

6767
Example of Authorizer implementation that fetches user from users repository, and validates user's password:
6868

@@ -282,7 +282,7 @@ $auth->onUserAuthorizationFailed(function(array $credentials) {
282282

283283
As you can see from the example above, you can provide multiple handlers for the same event. Following events are available:
284284

285-
1. `onUserAuthenticated` - (visit) User is recognized by its session cookie, token etc, so it was authenticated. Arguments provided to the callaback are user instance [AuthenticatedUserInterface], and authentication result [AuthenticationResultInterface].
285+
1. `onUserAuthenticated` - (visit) User is recognized by its session cookie, token etc, so it was authenticated. Arguments provided to the callback are user instance [AuthenticatedUserInterface], and authentication result [AuthenticationResultInterface].
286286
1. `onUserAuthorized` (login) User provided valid credentials, and system authorized it. Arguments provided to the callaback are user instance [AuthenticatedUserInterface], and authentication result [AuthenticationResultInterface].
287287
1. `onUserAuthorizationFailed` (login failed) User tried to authorize, but provided credentials were not valid, or authorization failed due to other reasons (SSO service down, etc). Arguments provided to the callback are user's credentials [array], as well as the failure reason ([Exception] or [Throwable]).
288288
1. `onUserSet` - User is set - authenticated, authorizer, or app set the user using its own logic. Argument provided to the callback is the user instance [AuthenticatedUserInterface].
@@ -332,7 +332,7 @@ During request handling, authentication can change:
332332
1. User can log out,
333333
1. System may request that authentication artifacts (like cookies) are cleaned up.
334334

335-
System can communicate these changes by making appropriate authentication transports that encapuslate information about these events available in a value container, and handing them over to `ActiveCollab\Authentication\Middleware\ApplyAuthenticationMiddleware`:
335+
System can communicate these changes by making appropriate authentication transports that encapsulate information about these events available in a value container, and handing them over to `ActiveCollab\Authentication\Middleware\ApplyAuthenticationMiddleware`:
336336

337337
```php
338338
<?php
@@ -438,7 +438,7 @@ Password policy implements `\JsonSerializable` interface, and can be safely enco
438438

439439
### Generating Random Passwords
440440

441-
Password strength validator can also be used to prepare new passwords that meed the requirements of provided policies:
441+
Password strength validator can also be used to prepare new passwords that meet the requirements of provided policies:
442442

443443
```php
444444
$validator = new PasswordStrengthValidator();
@@ -450,7 +450,7 @@ $password = $validator->generateValidPassword(32, $policy);
450450

451451
Password generator uses letters and numbers by default, unless symbols are required by the provided password policy.
452452

453-
Note that generator may throw an exeception if it fails to prepare a password in 10000 tries.
453+
Note that generator may throw an exception if it fails to prepare a password in 10000 tries.
454454

455455
## Login Policy
456456

0 commit comments

Comments
 (0)