Overriding OktaOpenIdConnect methods to get secret, key and url from db not .env

Hi everyone, I have integrated OKTA login to the Django project using python-social-auth library and I want to get client_key, secret and url from db not settings. I have found the method called get_key_and_secret that returns client_key and client_secret and I have overridden it, now I need to override method that returns OPENIDCONNECT_API_URL. Please, could you help me for it?

Thanks in advance!