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
First request is made to the backend to initialize the Smart-ID authentication process and get the verification code to show to the user.
Right after the verification code response has come back and shown to the user, a second request is made to the backend that responds when the user has gone through the process within Smart-ID app or some exception has been thrown. Then the user is either authenticated or an error will we sent as a response to the client.
It is not so straight-forward to split the example into 2 steps as objects are passed along, not simple data like strings (like authenticationHash, which would happen in a realistic use case when data is moving between the backend and the client between those steps).
I do understand that readme should show a simple use-case however it would make sense in my mind to make it more that can be used in a real application.
The text was updated successfully, but these errors were encountered:
The current example how to implement "Authenticating with semantics identifier" (https://github.com/SK-EID/smart-id-php-client#authenticating-with-semantics-identifier) merges 2 steps into a single flow which is a bit misleading when considering a real-world use case that IMHO is split into following steps:
It is not so straight-forward to split the example into 2 steps as objects are passed along, not simple data like strings (like authenticationHash, which would happen in a realistic use case when data is moving between the backend and the client between those steps).
I do understand that readme should show a simple use-case however it would make sense in my mind to make it more that can be used in a real application.
The text was updated successfully, but these errors were encountered: