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
4. In our `App\Http\Kernel.php` add `'saml2' => \RootInc\LaravelSaml2Middleware\Saml2::class,` most likely to the `$routeMiddleware` array.
16
16
5. In our `.env` optionally add `SAML2_STRICT, SAML2_SAML2_PROXY_VARS`. If not added, these values will default to true.
17
17
6. In our `.env` add `SAML2_IDP_ENTITYID, SAML2_IDP_SSO, SAML2_IDP_SLO and SAML2_IDP_x509`.
18
-
7. In our `.env` optionally add `SAML2_SP_NAME_ID_FORMAT, SAML2_SP_ENTITY_ID, SAML2_SP_SSO, SAML2_SP_SLO`. These values are only required to override if the default config does not suffice.
18
+
7. In our `.env` optionally add `SAML2_SP_NAME_ID_FORMAT, SAML2_SP_ENTITY_ID, SAML2_SP_SSO, SAML2_SP_SLO, SAML2_SP_x509, SAML2_SP_PRIVATE_KEY`. These values are only required to override if the default config does not suffice.
19
19
8. In our `App\Http\Middleware\VerifyCsrfToken.php` add `'/login/saml2callback' //original saml2 didn't protect anything. Since this is a POST for SAML2, the tokens will of course not match. Thus, we need to ignore` to the `$except` array.
20
20
9. Add the `saml2` middleware to your route groups on any routes that needs protected by auth and enjoy :tada:
21
21
10. If you need custom callbacks, see [Extended Installation](#extended-installation).
@@ -100,8 +100,10 @@ As of v0.2.0, we added options for overriding the default behavior for the servi
100
100
*`SAML2_SP_ENTITY_ID` defaults to `url("/saml2/metadata")`
101
101
*`SAML2_SP_SSO` defaults to `url("/login/saml2callback")`
102
102
*`SAML2_SP_SLO` defaults to `url("/logout/saml2callback")`
103
+
*`SAML2_SP_x509` defaults to `""`
104
+
*`SAML2_SP_PRIVATE_KEY` defaults to `""`
103
105
104
-
It's important that if we are not following the naming conventions of the readme, that we update these `SP` values.
106
+
It's important that if we are not following the naming conventions of the readme, that we update `SAML2_SP_ENTITY_ID, SAML2_SP_SSO, SAML2_SP_SLO` values.
0 commit comments