lookyman / nette-oauth2-server-doctrine

Integration of The League of Extraordinary Packages' OAuth 2.0 Server into Nette Framework- Kdyby/Doctrine storage implementation
MIT License
13 stars 3 forks source link

Support for multiple client redirect URIs #18

Open JanMikes opened 6 years ago

JanMikes commented 6 years ago

Hi there!

league/oauth2-server supports multiple redirect uris for each client -> https://github.com/thephpleague/oauth2-server/blob/master/src/Grant/AuthCodeGrant.php#L246

Any idea how to implement it easily? What came in my mind was changing doctrine type of $redirectUri property to simple_array, which would not cause a BC break but potentially if anyone used it with commas in url (who does that? 😄) it would stop work for him.

Another idea was to use json_array, but that would be a BC break as it would require change of data structure in db.

Maybe creating next property and pick the one which is not null?