Create a new OAuth2Proxy for the specified endpoint url_format
, using the
specified API key and secret.
This proxy won't have the Token set so will be unauthorised. If the token is unknown then the following steps should be taken to acquire an access token: - Get the authentication url with build_login_url - Display this url in an embedded browser widget - wait for the browser widget to be redirected to the specified redirect_uri - extract the token from the fragment of the redirected uri (using convenience function extract_access_token) - set the token with set_access_token
Set binding_required
to true
if the URL contains string formatting operations (for example "http://foo.com/%s".
These must be expanded using bind before invoking the proxy.
client_id |
the client (application) id |
auth_endpoint |
the authentication endpoint URL |
url_format |
the endpoint URL |
binding_required |
whether the URL needs to be bound before calling |
A new OAuth2Proxy. |