Hello,
I would like to use pac4-play (Scala version) to secure some OAuth Resource Server (REST Services)
I just want to secure my REST Services (not my webapp, so no redirects here) :
a. my REST Service receives the OAuth accessToken as a HTTP Header 'Authorization: Bearer <accessToken>'.
b. it needs to call the Authorization Server introspection endpoint to check the token validity
Optionally we can also implement local token validation (using AS jwk_uri), but it will be at a second stage.
c. then call a custom REST Service to retrieve the end-user permissions.
We'll need to implement later some cache for b and c operations.
I'm really new to PAC.
I've seen only OIDC and OAuth Client/RP support, but no support for Resource Servers.
Is that right ?
If I'm right, is it advisable to implement such support in pac/using pac abstractions ?
Thanks,
Adrian