go-oauth2-pg
go-oauth2-pg copied to clipboard
Some questions about implementation
Thank you for sharing this project with the community. I have some questions and I couldn't find the answer in the documentation.
-
Is it possible to list all customers of a specific user?
-
Is it reasonable to add a column in the oauth2_clients table to identify the client, if so how do I do that?
If I understand your question correctly - you can add a index to the data
column based on your need and use it in your system to filter out required records. Since data
has JSONB
type it allows to set indices on the nested fields and then write queries that filter data based on the nested fields.
Thanks for your response. I did a database design to adapt with your library without change directly or uses json to store my custom data. The orange database its the unmanagment part. I create a table between oauth2_clients and my custom data that i needed.
I clone your project and do small changes with some cruds implementations for delete and update oauth clients https://github.com/brutalzinn/go-oauth2-pg