All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- It's now possible to specify a redirect URL in
App::getRedirectUrl
- The
renderConnector
no longer uses a form to submit, making it possible to use within forms (e.g. field layout templates)
- Fixed Composer 2 compatibility (#32)
- Error when creating Facebook provider due to lack of Graph API version
- The Authorization process will now keep track of a context in the session
- 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
- Fixed a permissions error that could occur when a non-admin user tries to authenticate an app
- Changed
oauthclient/authorize
andoauthclient/authorize/refresh
routes tooauth/authorize
andoauth/authorize/refresh
respectively. THe original routes will continue to function as expected.
- Incorrect response from getUrlAuthorize (Thanks, @kennethormandy)
- Error when invoking createTokenModelResponse (Thanks, @joshangell)
- 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
- Allow providers to define their own logic for token creation
- Improved compatibility with older versions of PHP (7.0+)
- Added permissions for authorizing with apps
- The Connect button on apps in the CP now includes a
plugin.cp
context
- Added
AuthorizationUrlEvent
event type - Added
EVENT_GET_URL_OPTIONS
event toApps
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
- Added project config support
- Added events
EVENT_BEFORE_APP_DELETED
andEVENT_AFTER_APP_DELETED
- Minimum Craft version require is now 3.1.34.3
- Events now extend
ModelEvent
- Optimized event triggers
- Fixed deleting apps
- Added renderConnector() to app model
- Added support for redirectUri in connector controller
- Fixed bug where tokens for the wrong app could be retrieved
- 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 a potential bug getting tokens by app & user
- refreshToken service method no longer accepts an $app parameter
- Fixed install migration on MySQL
- Make sure only admins can access the OAuth settings
- Initial release
- Initial release