oidc-wp / openid-connect-generic

WordPress plugin to provide an OpenID Connect Generic client
https://wordpress.org/plugins/daggerhart-openid-connect-generic/
261 stars 155 forks source link

Allow access to "OpenID_Connect_Generic_Client" object #552

Open edmundcwm opened 4 months ago

edmundcwm commented 4 months ago

Is it possible to update the visibility of the OpenID_Connect_Generic_Client object to public?

I'm currently developing an alternate user login approach that is based on providing an access token in the URL as a query string. With this token, we'll check if the user account exists on WP and create it if it doesn't using the create_new_user method from the wrapper class. But this method requires the $user_claim and for that reason I'm finding myself needing to access certain methods like get_user_claim and validate_user_claim from the client object which the plugin doesn't provide access to.