Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't add authentication on my API #33

Open
michalbundyra opened this issue Jan 10, 2020 · 5 comments
Open

Can't add authentication on my API #33

michalbundyra opened this issue Jan 10, 2020 · 5 comments

Comments

@michalbundyra
Copy link
Member

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

@michalbundyra
Copy link
Member Author

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)

@michalbundyra
Copy link
Member Author

@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)

@michalbundyra
Copy link
Member Author

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)

@michalbundyra
Copy link
Member Author

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)

@michalbundyra
Copy link
Member Author

@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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant