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
Add additional tooling for same device flows (#139)
* SLIB-126 - fix AuthenticationResponseValidator issue with authentication response started with initialCallbackUrl, but QR-code flow was used by user
* SLIB-126 - add util to create callbackUrl with url-token
* SLIB-126 - add util to create callbackUrl with url-token
* SLIB-126 - improve comments
* SLIB-126 - move UrlSafeTokenGenerator and CallbackUrl to common package
* SLIB-126 - improve code style in CallbackUrlUtilTest
When using same device flows (Web2App or App2App) the initialCallbackUrl will be used by the Smart-ID app to redirect the user back to the Relying Party application.
687
+
Received callback URL will contain additional query parameters that must be validated by the Relying Party.
688
+
689
+
Example of received callback URL for authentication:
1. RP must verify that the user sessions has `callbackUrl.urlToken()` with same value as in query parameter `value`.
696
+
2. RP must verify that the `sessionSecretDigest` query parameter matches the calculated digest created from session secret received in device link session init response.
697
+
For this library provides `CallbackUrlUtil.validateSessionSecretDigest(digestFromCallbackUrl, sessionSecret)`
698
+
3. For authentication same device flow RP also must verify the `userChallengeVerifier` query parameter. This can be done when polling the session status has finished and session status response has to be
0 commit comments