You should check in CredentialsFilter if the paths you are trying to access are protected or not. Those two you are talking about should be whitelisted. Example:
As you can see, that code is designed for no-context deployment, where you don’t have the adaptor-rm context. I suggest you put some logging into the isProtectedResource method and tweak it if necessary.
I was accessing the wrong urls. They are like this http://localhost:8081/adaptor-rm/services/oauth/requestKey
So I changed the content of rootservices_rdfxml.jsp to reflect the correct urls but I don’t know how to change them in the imported jsp files from oauth-webapp
So your hint was helpfull. I modified the context with / and my urls are fine now.
I also had to set an aplication and a consumer store for OAuthConfiguration.
I mostly return true for testing purpose.
I’m now able to link my serveur to Polarion, I also can see the list of services.
But when I click on “Select Work Item From Linked Data Friend Server” I got a popup with the following warning : “Friend server configuration is missing”.
If having both apps on the same machine helps, you should look at CSP/CORS settings that prevent website data to be stolen by hackers but may make integration work harder. Polarion also had problems with overly restrictive use of SameSite=Strict cookie attribute, preventing it from being sent when a Polarion page is loaded in an iframe, even after you type your login and password.