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

Use arrays to define OAuth2 information in the plugin definition #945

Open
wants to merge 2 commits into
base: 7.x-2.x
Choose a base branch
from

Conversation

hussainweb
Copy link
Contributor

Currently, we use two pieces of information for OAuth2 authentication - server and scope. We define them as separate items in the plugin definition. There might be more items required in the future (one of which could be support for client credentials in #944). It might be cleaner to change all the definitions to an array.

Currently, we use two pieces of information for OAuth2 authentication - server and scope. We define them as separate items in the plugin definition. There might be more
items required in the future (one of which could be support for client credentials in RESTful-Drupal#944). It might be cleaner to change all the definitions to an array.
@e0ipso
Copy link
Member

e0ipso commented Sep 18, 2016

Unfortunately this has already been tagged. If we apply this changes we'd be breaking backwards compatibility. I'd be however happy to merge this if there was support for specifying oauth2Serverand oauth2Scope in the root level.

@hussainweb
Copy link
Contributor Author

Sorry for the long delay. I added support for the older (current) style of specifying OAuth2 information as well. I also changed the structure of if conditions to be more readable, hopefully.

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

Successfully merging this pull request may close these issues.

2 participants