Closed brandonaaron closed 13 years ago
I've pulled this, but I've kept the resource owner mixin name ResourceOwner
since this mirrors the OAuth spec's terminology. I've also changed the association name and schema for client owners, so a client belongs to a :oauth2_client_owner
rather than a :oauth2_resource_owner
.
Thanks a lot for your contribution!
Separate out the ResourceOwner into AuthorizationOwner and ClientOwner so that the client application can be registered to other owners (e.g. A Company owns the Client and the User owns the Authorization).
Also includes a rake task for running specs and a ui for user registration in the example app.