Skip to content

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