You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cedric Dussud edited this page Aug 29, 2016
·
1 revision
If you use the protected_attributes gem in Rails 4 Doorkeeper may issue the following warning and error:
WARNING: Can't mass-assign protected attributes for Doorkeeper::AccessGrant: application_id, resource_owner_id, expires_in, redirect_uri, scopesActiveRecord::RecordInvalid: Validation failed: Resource owner can't be blank, Application can't be blank, Expires in can't be blank, Redirect uri can't be blank
This is because Doorkeeper uses Rails 4 strong parameters. One workaround is to put the following monkey patch in an initializer.