--- title: Title keywords: fastai sidebar: home_sidebar nb_path: "nbs/plugin.authenticators.oauth.ipynb" ---
{% raw %}
{% endraw %}

OAuth Authenticator

OAuth Authenticator provides an easy interface to setup standard Open Authorization (OAuth) with 3rd party services.

Simply calling authenticate() should load the related account with required credentials.

Inheriting class should implement:

  • get_oauth_url() to setup OAuth endpoint
  • get_tokens_from_code() to retrieve tokens from the service with returned OAuth code
  • refresh_tokens() to get new token pairs