Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple User Models #456

Closed
JanStevens opened this issue Aug 8, 2014 · 1 comment · Fixed by #1355
Closed

Multiple User Models #456

JanStevens opened this issue Aug 8, 2014 · 1 comment · Fixed by #1355

Comments

@JanStevens
Copy link

Hello,

I have a centralized user application with doorkeeper and devise. There are two user tables in this application. Tenant specific users and Admin users that can manage the tenant specific users.

Both should be able to authenticate client apps. I see that the resource_owner_id is set in the access_grants and access_tokens.

The problem is that for multiple user models you get conflicts because my admin user has id = 1 and my tenant user has id = 1 and they are both registered for the same client app.

the solution is to make the resource_owner_id polymorphic so multiple user models can be used or at least a resource_owner_type should be set.

@JanStevens
Copy link
Author

PR #461 Adds this feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant