Thank you for your reply, Diana. I’m using an IDaaS provider to manage my users, and the OIDC integration with WildFly is working smoothly for the web application. My next goal is to protect the APIs by validating the access tokens generated by this same IDaaS provider.
for example:
"
http://localhost:8080/todo-wf26/site/todos" access from browser works well with OIDC redirect from IDAAS
I want "
http://localhost:8080/todo-wf26/api/todos"
access with third party client(say postman for now) to work with access token(JWT) provided by IDAAS
Is this doable?
Right now when I am accessing the APIs from postman, wildfly is throwing "error: Failed verification of token: Invalid bearer token"
Where I found that:
My web app login works because WildFly is using OIDC
code flow +
session cookie (JSESSIONID).
My API calls fail with
401 because WildFly is
not yet configured to trust the bearer token you’re sending – even if it comes from the same IDAAS client and uses the same clientId/clientSecret.