github kitware-resonant/resonant-oauth-client v0.8.0

latest releases: v1.0.3, v1.0.2, v1.0.1...
3 years ago
  • Breaking Change: OauthClient now requires a URL object as it's first argument.

    • Update existing
      new OauthClient('http://some.url/oauth/', ...
      to
      new OauthClient(new URL('http://some.url/oauth/'), ...
  • Breaking Change: The OauthClient scopes optional argument is now passed via an options object as the third argument.

    • Update existing
      new OauthClient(..., ['read_scope'])
      to
      new OauthClient(..., {scopes: ['read_scope']})
  • Added an OauthClient option for redirectUrl, to specify the OAuth2 Redirect URI to submit to the server. This defaults to the current URL.

    • Use this like:
      new OauthClient(..., {redirectUrl: new URL('http://some.url/oauth-landing')})
  • Added additional internal validation (with automatic correction) of passed URLs.

Don't miss a new resonant-oauth-client release

NewReleases is sending notifications on new releases.