Skip to content

Commit 2b576d0

Browse files
committed
Add deprecations.
1 parent 6ea378f commit 2b576d0

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

docs/Authentication.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ At the same time you can always set up "deny" rules for any allowed prefix to re
4242

4343
## Enabling
4444

45+
**DEPRECATED** Use `TinyAuth.Authentication` instead. Rest of the page is accurate.
46+
4547
Authentication is set up in your controller's `initialize()` method:
4648

4749
```php

docs/Authorization.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ frontend yourself)
2121
Assuming you already have authentication set up correctly you can enable
2222
authorization in your controller's `beforeFilter()` method like this example:
2323

24+
**DEPRECATED** Use middleware approach and `TinyAuth.Authorization` instead. Rest of the page is accurate.
25+
2426
```php
2527
// src/Controller/AppController
2628

src/Controller/Component/AuthComponent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
* TinyAuth AuthComponent to handle all authentication in a central INI file.
1313
*
1414
* @property \Cake\Controller\Component\FlashComponent $Flash
15+
* @deprecated Use TinyAuth.Authentication and TinyAuth.Authorization instead.
1516
*/
1617
class AuthComponent extends LegacyAuthComponent {
1718

0 commit comments

Comments
 (0)