ueberauth / guardian_db

Guardian DB integration for tracking tokens and ensuring logout cannot be replayed.
MIT License
368 stars 87 forks source link

separated token schemes #100

Closed floodico closed 5 years ago

floodico commented 5 years ago

Hey! I want to have several different types of tokens in different schemes and manage them at the context level. But if I understand correctly, guardian provides api, where we can't pass another token model(some module that inherited from default Token model). Right? It looks very not flexible

hassox commented 5 years ago

I'm not quite sure I know what you mean here. Can you maybe give an example of what you're trying to do?

floodico commented 5 years ago

hi @hassox! i mean i need to create for example user_tokens scheme, qr_code_tokens scheme and some invite_tokens scheme. But as i see, GuardianDB can work only for the one scheme

yordis commented 5 years ago

@floodico could you share some use cases that will require this to be implemented?

yordis commented 5 years ago

Due to inactivity I will close this issue, feel free to open it again if your issue persists. In terms of having multiple schemas, create on your application business rules the join tables.