bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Purpose of user_id in the oauth_clients table in the cookbook example #946

Closed rlvillacarlos closed 5 years ago

rlvillacarlos commented 6 years ago

I would like to know the purpose of the user_id in the oauth_clients table. Is it meant for assigning the user account that owns a client account?

bshaffer commented 5 years ago

yes, if you'd like to keep track of the users who created the oauth clients, this is the field to do it. It's not a part of the OAuth2 spec, it's just something I added because I thought it would be useful in most cases.