laminas-api-tools / api-tools-admin

Laminas API Tools Admin module
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
13 stars 21 forks source link

OAuth2_PDO adapter mysql_pdo error #20

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

I'm using Apigility on an Apache server, with MySQL and I can't manage to create an Authentication Adapter, nor with OAuth2 PDO as

sqlite:/var/www/html/apigility/data/oauth2-test.sqlite

copied from 'vendor/zfcampus/zf-oauth2/data/dbtest.sqlite' as the example suggest or providing my own local info for mysql

mysql:host=localhost;dbname=apigility

the only message I get is "Please provide a valid URL route for OAuth2 PDO adapter" in both cases.

Is there something I'm missing?? If I try to connect with PDO in a single php file I connection is established, but not via Apigility

apigility_oauth_error


Originally posted by @JFernandoGomez at https://github.com/zfcampus/zf-apigility-admin/issues/340

weierophinney commented 4 years ago

Quick question, did you type in the "/oauth" for the route or leave the placeholder? If not, might just try typing it in.


Originally posted by @NathanHaley at https://github.com/zfcampus/zf-apigility-admin/issues/340#issuecomment-219120916