Dear Vrinda,
Following the instructions for secure archive and RESTful services leads to a situation where it is not possible to access the archive (401 Unauthorized).
I think I've tracked the source of this down to a missing role for user and admin, which is *not* automatically assigned to these new users when they are imported via LDAP user federation.
After initially creating the realm there are ?no users, but there are 3 roles generated automatically (default-roles-dcm4che, offline_access, uma_authorization).
We import 3 new users via sync with LDAP server:
At this point we then import roles, again syncing with LDAP.
the five imported roles can be seen as they don't have an associated description.
When looking at the role assigned to each user they are as follows:
User
Admin
Root
You'll note that none of them have the role default-roles-dcm4che assigned to them.
Without adding the role "default-roles-dcm4che" to either of the users: user or admin it is not possible to interact with the archive web interface. I.e. after logging in, I see no information on the standard landing page, and receive a 401 Unauthorized error when choosing an option from the left hand menu icon.
I don't know if this is some peculiarity of installation on Ubuntu, but I have reproduced this configuration issue multiple times (each time starting with a complete reinstall of keycloak and wildfly). In every repeated install, adding the role default-roles-dcm4che fixes the problem.
I also tried removing/purging openldap and reinstalling to confirm that it wasn't an issue with a "failed" import of the original .ldif files. None of the imports reported any failure. Again the problem persisted.
Not sure if anyone else has encountered this problem, but I have seen some threads talking about 401 Unauthorized, so might be worth exploring??
Hope this helps.
Best,
Jon