I tried this for Azure's Open ID Connect based SSO login with AEM - https://stacknowledge.in/blogs/aem-oidc-based-custom-authentication-handler/