8
8
Once SAML Response is received LightSAML SP-Bundle authentication provider has to resolve it to a corresponding User.
9
9
That resolution is done through several steps, that this document will explain in details.
10
10
11
- ![ User resolution] ( /images/sp-bundle/user-resolution-01-resolution.png )
12
-
11
+ <img src =" /images/sp-bundle/user-resolution-01-resolution.png " alt =" User resolution " style =" max-width : 90% " >
13
12
14
13
## Username mapper
15
14
16
15
First step in resolving the user from SAML Response is to check if it's an existing user. In order to do that,
17
16
we need the ** username** .
18
17
19
- ![ Username mapper ] ( /images/sp-bundle/user-resolution-02-username.png )
18
+ < img src = " /images/sp-bundle/user-resolution-02-username.png " alt = " Username mapper " style = " max-width : 90 % " >
20
19
21
20
Username mapper responsibility is to provide username for a given SAML Response.
22
21
@@ -61,7 +60,7 @@ such user if it exists. If an instance of ``Symfony\Component\Security\Core\User
61
60
the user resolution is finished right away, based just on the SAML Response to username mapping, provided by
62
61
username mapper.
63
62
64
- ![ User provider ] ( /images/sp-bundle/user-resolution-03-provider.png )
63
+ < img src = " /images/sp-bundle/user-resolution-03-provider.png " alt = " User provider " style = " max-width : 90 % " >
65
64
66
65
The `` provider `` is common Symfony options for each
67
66
[ security listener configuration] ( http://symfony.com/doc/current/reference/configuration/security.html ) .
@@ -72,7 +71,7 @@ The ``provider`` is common Symfony options for each
72
71
If user provider didn't return User, it has to throw `` UsernameNotFoundException `` and in that case
73
72
user creator is called with expectation to create a new User based on the given SAML Response, if possible.
74
73
75
- ![ User creator ] ( /images/sp-bundle/user-resolution-04-creator.png )
74
+ < img src = " /images/sp-bundle/user-resolution-04-creator.png " alt = " User creator " style = " max-width : 90 % " >
76
75
77
76
You can find the example user creator in
78
77
[ Getting started - Step 8: Implement User Creator service] ( ../Getting-started/#step-8-implement-user-creator-service ) .
0 commit comments