I have a Service Provider hosting web applications.
These applications are protected by a J2EE filter, deployed in the Service Provider, that intercepts requests and communicate with SAML 2.0 identity providers.
Now the same service provider have to host even Oauth 2.0 resources (so became an Oauth 2.0 resource server).
How can I evolve my J2EE filter to detect which requests have to be protected via SAML 2.0 and which requests via Oauth 2.0 access_token ?
Thanks in advance.