Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Setup OAuth2 Authentication Failing... #27

Closed
telkins opened this issue Mar 1, 2014 · 3 comments
Closed

Setup OAuth2 Authentication Failing... #27

telkins opened this issue Mar 1, 2014 · 3 comments

Comments

@telkins
Copy link

telkins commented Mar 1, 2014

I have just started a clean "install" of the 0.9.0 version of apigility and have tried to set up PDO-based OAuth2 authentication. I filled out the four fields and clicked on the Save button. Nothing happens.

Using Chrome, I opened up the developer tools window, selected the console tab, and noticed that the following error occurs when I click on the Save button:

An invalid form control with name='' is not focusable.

I don't recall trying this in previous versions, so I can't say whether or not it's worked before.

weierophinney added a commit to zfcampus/zf-apigility-admin that referenced this issue Mar 1, 2014
Form submission was broken due to having conditionally showing elements that
were marked required. Removed "required" flag from all conditional elements.
@weierophinney
Copy link
Member

Update your zfcampus/zf-apigility-admin dependency. You can do this either via composer update or descending into vendor/zfcampus/zf-apigility-admin and running git fetch origin && git rebase origin/master.

The error was due to the addition of the Mongo functionality. Several elements were marked as required that are only conditionally shown, making form validation fail. I removed the validation requirements (we have some server-side validation already anyways).

@telkins
Copy link
Author

telkins commented Mar 1, 2014

Thanks, @weierophinney. That's some quick turnaround...! ;-)

It's family movie night here in Denmark, so I'll check it out after the film. :-)

@telkins
Copy link
Author

telkins commented Mar 2, 2014

It looks like it's not working for non-SQLite databases. It appears the username/password aren't passed along from the client.

I've just created a new ticket in zf-apigility-admin: 114.

weierophinney added a commit to zfcampus/zf-apigility-admin-ui that referenced this issue Aug 19, 2014
Form submission was broken due to having conditionally showing elements that
were marked required. Removed "required" flag from all conditional elements.
baptistemanson pushed a commit to baptistemanson/zf-oauth2 that referenced this issue Jan 24, 2015
Add "zfcampus/zf-configuration" dependency
baptistemanson pushed a commit to baptistemanson/zf-oauth2 that referenced this issue Jan 24, 2015
- zf-configuration is only used by the admin
baptistemanson pushed a commit to baptistemanson/zf-oauth2 that referenced this issue Jan 24, 2015
- only used by the admin; moved to development config
baptistemanson pushed a commit to baptistemanson/zf-oauth2 that referenced this issue Jan 24, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants