You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/jwt.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ We're not done yet! Let's move on to configuring the Symfony SecurityBundle for
65
65
66
66
It is necessary to configure a user provider. You can either use the [Doctrine entity user provider](https://symfony.com/doc/current/security/user_provider.html#entity-user-provider)
67
67
provided by Symfony (recommended), [create a custom user provider](https://symfony.com/doc/current/security/user_provider.html#creating-a-custom-user-provider)
68
-
or use [API Platform's FOSUserBundle integration](fosuser-bundle.md) (not recommended).
68
+
or use [API Platform's FOSUserBundle integration](../symfony/fosuser-bundle.md) (not recommended).
69
69
70
70
If you choose to use the Doctrine entity user provider, start by [creating your `User` class](https://symfony.com/doc/current/security.html#a-create-your-user-class).
Copy file name to clipboardExpand all lines: symfony/fosuser-bundle.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,20 @@
1
-
# FOSUserBundle Integration
1
+
# FOSUserBundle Integration with Symfony
2
+
3
+
> [!WARNING]
4
+
> The use of FOSUserBundle is no longer recommended for better flexibility and security. It is advised to switch to the
5
+
> [Doctrine entity user provider](https://symfony.com/doc/current/security/user_provider.html#entity-user-provider) (recommended)
6
+
> or consider [creating a custom user provider](https://symfony.com/doc/current/security/user_provider.html#creating-a-custom-user-provider).
2
7
3
8
## Installing the Bundle
4
9
5
-
The installation procedure of the FOSUserBundle is described [in the main Symfony docs](https://symfony.com/doc/master/bundles/FOSUserBundle/index.html)
10
+
The installation procedure of the FOSUserBundle is described [in the FOSUserBundle documentation](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/docs/index.rst).
6
11
7
12
You can:
8
13
9
-
- Skip [step 3 (Create your User class)](https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-3-create-your-user-class)
14
+
- Skip [step 3 (Create your User class)](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/docs/index.rst#step-3-create-your-user-class)
10
15
and use the class provided in the next paragraph to set up serialization groups the correct way
11
-
- Skip [step 4 (Configure your application's security.yml)](https://symfony.com/doc/master/bundles/FOSUserBundle/index.html#step-4-configure-your-application-s-security-yml)
12
-
if you are planning to [use a JWT-based authentication using `LexikJWTAuthenticationBundle`](jwt.md)
16
+
- Skip [step 4 (Configure your application's security.yml)](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/docs/index.rst#step-4-configure-your-applications-securityyml)
17
+
if you are planning to [use a JWT-based authentication using `LexikJWTAuthenticationBundle`](../core/jwt.md)
13
18
14
19
If you are using the API Platform Standard Edition, you will need to enable the form services in the symfony framework
15
20
configuration options:
@@ -22,11 +27,11 @@ framework:
22
27
23
28
## Creating a `User` Entity with Serialization Groups
24
29
25
-
Here's an example of declaration of a [Doctrine ORM User class](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.rst#a-doctrine-orm-user-class).
26
-
There's also an example for a [Doctrine MongoDB ODM](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/index.rst#b-mongodb-user-class).
30
+
Here's an example of declaration of a [Doctrine ORM User class](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/docs/index.rst#a-doctrine-orm-user-class).
31
+
There's also an example for a [Doctrine MongoDB ODM](https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/docs/index.rst#b-mongodb-user-class).
27
32
You need to use serialization groups to hide some properties like `plainPassword` (only in read) and `password`. The properties
28
-
shown are handled with [`normalizationContext`](serialization.md#normalization), while the properties
29
-
you can modify are handled with [`denormalizationContext`](serialization.md#denormalization).
33
+
shown are handled with [`normalizationContext`](../core/serialization.md#normalization), while the properties
34
+
you can modify are handled with [`denormalizationContext`](../core/serialization.md#denormalization).
30
35
31
36
Create your User entity with serialization groups:
0 commit comments