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: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -440,10 +440,10 @@ The AuthNRequest will be sent signed or unsigned based on the security settings
440
440
441
441
The IdP will then return the SAML Response to the user's client. The client is then forwarded to the Attribute Consumer Service of the SP with this information.
442
442
443
-
We can set a 'returnTo' url parameter to the login function and that will be converted as a 'RelayState' parameter:
443
+
We can set a 'RelayState' parameter containing a return url to the login function:
444
444
```
445
-
String targetUrl = 'https://example.com';
446
-
auth.login(returnTo=targetUrl)
445
+
String returnUrl = 'https://example.com';
446
+
auth.login(relayState=returnUrl)
447
447
```
448
448
The login method can receive 6 more optional parameters:
449
449
-*forceAuthn* When true the AuthNRequest will have the 'ForceAuthn' attribute set to 'true'
@@ -612,10 +612,10 @@ The Logout Request will be sent signed or unsigned based on the security setting
612
612
613
613
The IdP will return the Logout Response through the user's client to the Single Logout Service of the SP.
614
614
615
-
We can set a 'returnTo' url parameter to the logout function and that will be converted as a 'RelayState' parameter:
615
+
We can set a 'RelayState' parameter containing a return url to the login function:
616
616
```
617
-
String targetUrl = 'https://example.com';
618
-
auth.logout(returnTo=targetUrl)
617
+
String returnUrl = 'https://example.com';
618
+
auth.logout(relayState=returnUrl)
619
619
```
620
620
621
621
Also there are 7 optional parameters that can be set:
0 commit comments