Skip to content

Polymorphic ResourceOwner support #651

@thibaudgg

Description

@thibaudgg

Hey,

My App needs to support authentication of both User and Operator model (we use two different Devise scopes).

It would be great if we could add a resource_owner_type field to Doorkeeper::AccessToken for supporting a polymorphic association.
Owner type could be passed as an optional argument on the POST /oauth/token?owner_type=operator request if multiple owner type are supported.

It could be related to #461, but I would gladly fire up a new PR for that.

Thoughts?

PS: Thanks for this awesome gems ❤️!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions