Can't add authentication on my API
michalbundyra opened this issue · 5 comments
Hi there !
I created a code connected API with your tool and I have issues with enabling authentication on it.
I proceeded the way it is told on this page https://apigility.org/documentation/auth/authentication-http-basic
So it's about http basic auth. I create my adapter and then it is well saved, but when I go on my API the dropdown to select an authentication type is empty, and then when I go on the top menu link "authentication" to see my adapter, it is NOT display !
I have the files generated (global and local) but just can't link any auth method to my API... Please I need help. Thank you very much.
Originally posted by @dmaechler at zfcampus/zf-apigility-admin#291
The same issue for the OAuth adapter. When I create an adapter over the UI, it seems to get saved, but what is then created is only a new route in the /config/autoload/global.php
. The other settings get lost. And when I refresh the page, the adapter is not there.
Seems to be a bug. Or is there somebody, who has got it working?
Originally posted by @automatix at zfcampus/zf-apigility-admin#291 (comment)
@dmaechler do you have the same issue reported here: zfcampus/zf-apigility-admin-ui#50 ?
Which Apigility version are you running? Did you try to update your composer, running composer update
?
/cc @automatix
Originally posted by @ezimuel at zfcampus/zf-apigility-admin#291 (comment)
Thank you for the fast reply!
do you have the same issue reported here: zfcampus/zf-apigility-admin-ui#50 ?
I don't think so. Since already the first created adapter is not visible.
I discribed the issue incorrectly: The data gets saved -- it's not only the global.php
, but also the local.php
(just didn't see that, since I checked it with git status
).
Which Apigility version are you running? Did you try to update your composer, running composer update?
I'm using the curretly latest version, v1.0.3
.
Originally posted by @automatix at zfcampus/zf-apigility-admin#291 (comment)
Same problem, caused by renaming my root dir...
Check 'config_glob_paths' in your application.config.php and development.config.php files.
Worked for me...
Originally posted by @jmdelehaye at zfcampus/zf-apigility-admin#291 (comment)
@automatix did you try to check the config_glob_paths in application.config.php as suggested by @jmdelehaye?
Originally posted by @ezimuel at zfcampus/zf-apigility-admin#291 (comment)