0Auth2 Genericauthenticator - Customize authorization process

I’m using Jupyterhub with external OAuth2 authentication and the genericauthenticator class.
I have a external OpenId provider that authentifies each user and returns some profile info about them.
My list of users is already managed by the OpenID provider and is .
I would like to authorize them when they connect based on the user profile data sent by my OpenID provider.
How should I do that? Any method to extend for example?
I don’t want to define my users in the config file or using the administration GUI.
Thank you very much

Seems like check_allowed method is your friend. You can override it to add your own custom logic to authorise users.