Thanks for your reply Jerome. I thought that since OpenId is built on the top of OAuth2.0 so it should be supported by all OIDC providers. But I am afraid, I don't know much about this so will close it here :-)
On the other hand, I am not sure how do I get access to OidcProfile object from my request. From my Security filter, DefaultSecurityLogic is getting triggered and I have access to UserProfile object in there, but not sure how to I get handle of OidcProfile object so that I can get my accesstoken and refresh token in my securityFilter. I know for the normal flow, the access token and refresh token are returned in the Callback filter, which are then saved to the user profile in the session. Now in my scenario, I am trying to use securityFilter as the default filter for all the requests i.e. WebFilter(/*) and am trying to handle the access token expiry logic in there itself. Hence need the handle to my tokens in there. Am I doing something wrong?
My use case :-
Scenario 1 (Non OIDC users)
Web request --> Security filter (Does nothing) --> Normal Login
Scenario 2 (OIDC users)
Web request --> Security filter ( OIDC auth) --> success --> Normal Login
Scenario 3 (OIDC users)
Web request --> Security filter ( already authenticated, check whether access token has expired and if yes use the refresh token logic to get a new access token and save it in the profile ) --> success --> Normal Login