songkick / oauth2-provider

Simple OAuth 2.0 provider toolkit
MIT License
529 stars 148 forks source link

Separate owners #1

Closed brandonaaron closed 13 years ago

brandonaaron commented 13 years ago

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.

jcoglan commented 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!