Version 2.1.9

March 30, 2021

Added

  • It's now possible to specify a redirect URL in App::getRedirectUrl

Fixed

  • The renderConnector no longer uses a form to submit, making it possible to use within forms (e.g. field layout templates)

Version 2.1.8

October 27, 2020

Fixed

  • Fixed Composer 2 compatibility (#32)

Version 2.1.7

April 6, 2020

Fixed

  • Error when creating Facebook provider due to lack of Graph API version

Changed

  • The Authorization process will now keep track of a context in the session

Added

  • Added AuthorizationEvent to modify the flow of app authorization, such as the return URI for non-POST authorizations.
  • Added venveo\oauthclient\controllers\AuthorizeController::EVENT_BEFORE_AUTHENTICATE
  • Added venveo\oauthclient\controllers\AuthorizeController::EVENT_AFTER_AUTHENTICATE

Version 2.1.6

February 18, 2020

Fixed

  • Fixed a permissions error that could occur when a non-admin user tries to authenticate an app

Changed

  • Changed oauthclient/authorize and oauthclient/authorize/refresh routes to oauth/authorize and oauth/authorize/refresh respectively. THe original routes will continue to function as expected.

Version 2.1.5

February 17, 2020

Fixed

  • Incorrect response from getUrlAuthorize (Thanks, @kennethormandy)

Version 2.1.4

February 7, 2020

Fixed

  • Error when invoking createTokenModelResponse (Thanks, @joshangell)

Version 2.1.3

January 13, 2020

Added

  • Added a setting to override a provider's authorization URL
  • Added EVENT_CREATE_TOKEN_MODEL_FROM_RESPONSE to base Provider
  • Added a connect button to the app edit page

Changed

  • Allow providers to define their own logic for token creation

Fixed

  • Improved compatibility with older versions of PHP (7.0+)

Version 2.1.2

November 9, 2019

Added

  • Added permissions for authorizing with apps

Changed

  • The Connect button on apps in the CP now includes a plugin.cp context

Version 2.1.1

October 8, 2019

Added

  • Added AuthorizationUrlEvent event type
  • Added EVENT_GET_URL_OPTIONS event to Apps service to allow modification of options
  • Added context parameter to getRedirectUrl($context) to track the EVENT_GET_URL_OPTIONS
  • Added context parameter to renderConnector($context) to track the EVENT_GET_URL_OPTIONS

Version 2.1.0

October 8, 2019

Added

  • Added project config support
  • Added events EVENT_BEFORE_APP_DELETED and EVENT_AFTER_APP_DELETED

Changed

  • Minimum Craft version require is now 3.1.34.3
  • Events now extend ModelEvent
  • Optimized event triggers

Fixed

  • Fixed deleting apps

Version 2.0.4

October 3, 2019

Added

  • Added renderConnector() to app model
  • Added support for redirectUri in connector controller

Fixed

  • Fixed bug where tokens for the wrong app could be retrieved

Version 2.0.3

October 3, 2019

Added

  • Added craft.oauth Twig variable
  • Added craft.oauth.getAppByHandle() Twig helper
  • Added CLI for refreshing app tokens oauthclient/apps/refresh-tokens <app handle>
  • Added events for token refresh before, after, and error
  • Added getValidTokensForUser() to App model
  • Added checkTokenWithProvider() to Credentials service
  • Added ValidatesToken interface for providers to implement

Fixed

  • Fixed a potential bug getting tokens by app & user

Changed

  • refreshToken service method no longer accepts an $app parameter

Version 2.0.2

October 2, 2019

Fixed

  • Fixed install migration on MySQL

Version 2.0.1

October 2, 2019

Changed

  • Make sure only admins can access the OAuth settings

Version 2.0.0

October 2, 2019

Added

  • Initial release

Version 1.0.0

December 4, 2018

Added

  • Initial release