laminas-api-tools / api-tools-oauth2

Laminas module for implementing an OAuth2 server
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
11 stars 15 forks source link

Oauth2 with Mongodb #5

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

"This module uses any PDO-suported database to manage the OAuth2"

What if someone wishes to use oauth2 with MongoDB and any other database type? Where can we find examples of creating and testing mongodb connection with oauth2? I could not find in Apiagility some info on this.


Originally posted by @juniormayhe at https://github.com/zfcampus/zf-oauth2/issues/161

weierophinney commented 4 years ago

There is a Doctrine ORM adapter at api-skeletons/zf-oauth2-doctrine you can use as a template if you wish to create a new adapter.

Otherwise see https://bshaffer.github.io/oauth2-server-php-docs/overview/storage/ for existing adapters.


Originally posted by @TomHAnderson at https://github.com/zfcampus/zf-oauth2/issues/161#issuecomment-380222580