Now that web applications are protected by Syncope 3.0, it's time to get back in control about which users can access.
Let's recap the plan of the current post series:
Each post provides a fully working demo based on Docker Compose, so if you like to follow, please stay prepared and get it ready on your laptop.
Once all is set up, just cd into
part3 and start via
docker compose up
Now it is time to relax and just let the magic happen: Docker will download the required images (database, Syncope components, native OpenID Connect and legacy web applications) and set everything up. When you start seeing log lines as follows:
org.apache.syncope.wa.starter.services.WAServiceRegistry : Loading application definitions
then it is time to back up and start giving the demo a try.
Things start changing after signing up a new user from Enduser application available at http://localhost:38080/syncope-enduser/ (you can check the first post about the detailed steps): when attempting to log in as the newly created user, in fact, an error message is reported.
What did happen?
Syncope is now equipped with a slightly different user workflow definition, which requires approvals for user self-initiated operations, as registration.
When logging into the Console application at http://localhost:28080/syncope-console/ (you can check again the first post about the detailed steps) one of top-bar widgets is displaying a non-zero badge count:
From there we can navigate to the list of pending approvals:
ilgrosso is currently in state
createApproval (this is why logging in is not allowed and generates failure as reported above).
The request can be claimed, managed and approved to move on.
After approval, no more pending requests to manage.
Moreover, now logging into the Enduser application as
ilgrosso works as expected:
So far, so good: it is time to access our native OpenID Connect application at http://localhost:9009
This time things are not working as in the first post: we are getting an error about "service access denied".
Why? The WA configuration is now requiring users to be part of the
applications group, so let's ask for it via Enduser application:
After passing through CAPTCHA (which can be optionally disabled or replaced with alterntives, in case) and hitting the Change button, we will receive a confirmation that our request was successful.
From Console we can see there is a new pending request for approval related to user
After following the same process as described above, the user is finally allowed to access our native OpenID Connect application.
The behavior described above is based on essentially two new items, if compared with previous posts.
First is the custom workflow definition, which requires approvals for user self-initiated operations, as registration and update.
The demo features the Flowable extension, which includes support for Console and Enduser.
Second and fundamental addition is the definition of an Access Policy requiring membership for group
applications, as mentioned above.
We have shown how to add some Identity Management spicy on top of the Access Management demo built by previous posts.
This was just to illustrate how to achieve some common business goals by combining the integrated features provided by Apache Syncope 3.0.
Next steps? Go get your hands dirty with Syncope or ask for our support.