open static fun create(authProvider: OAuth2Auth, callbackURL: String): OAuth2AuthHandler
Create a OAuth2 auth handler with host pinning
authProvider - the auth provider to use
callbackURL - the callback URL you entered in your provider admin console, usually it should be something like: `https://myserver:8888/callback`
Return
the auth handler
open static fun create(authProvider: OAuth2Auth): OAuth2AuthHandler
Create a OAuth2 auth handler without host pinning. Most providers will not look to the redirect url but always redirect to the preconfigured callback. So this factory does not provide a callback url.
authProvider - the auth provider to use
Return
the auth handler