Is it compulsory to have OAUTH2_USERDATA_URL and CLIENT_SECRET to use Generic Oauthenticator with jupyterhub?

My Premise’s OAUTH service doesn’t provide userdata_url as such and client secret for some security purpose.
Can I use GenericOauthenticator in this case?