PHP Classes

Moving OAuth Server Configuration to Separate Files - PHP OAuth Library package blog

Recommend this page to a friend!
  All package blogs All package blogs   PHP OAuth Library PHP OAuth Library   Blog PHP OAuth Library package blog   RSS 1.0 feed RSS 2.0 feed   Blog Moving OAuth Server C...  
  Post a comment Post a comment   See comments See comments (11)   Trackbacks (0)  

Author:

Viewers: 24

Last month viewers: 3

Package: PHP OAuth Library

As the OAuth class supports more and more servers, it is because too large, moving the server configuration to separate files is necessary to keep the class more maintainable.

Read this article to learn how you can help to decide how the class will evolve in the future without breaking the applications that use it.




Loaded Article

Splitting the Code from the Configuration Dilemma

Every week I get new requests to add built-in support to more and more OAuth servers.

Having the configuration of each server built-in the class is the simplest way to use it for most users.

So something is necessary to change to move the configuration from the class code and still keep it simple.

My idea is to move the configuration of least popular servers to a separate file that will be read by the class if one server is used from those that are not on the built-in supported list.

That file will be probably in the JSON format, so it is easy to edit for users that want to add support to new servers.

Survey About Which Servers Will be Moved the External Configuration File

Moving the configuration of the least popular servers is the way to avoid affecting too many of the users. So the question is more on what are the least popular servers? I know that some servers are popular but I don't know about the rest.

Therefore I would like to ask you to help telling me which are the popular servers by filling this quick survey. You should just check one or more OAuth servers that you use. I will move the least picked servers to the separate configuration file.

Other Improvement Suggestions

The survey form also has an optional field to let you tell about other OAuth servers you would like to be supported in future versions.

There is also another optional field to let you describe any other features that you would like to see in the future.

If you would like to get a response to your suggestion, there is an optional field to let you enter your email address.

For other comments, please reply to this article here.




You need to be a registered user or login to post a comment

Login Immediately with your account on:



Comments:

2. Manuel, I already finished that - john a (2014-02-05 21:38)
A one file config for all OAuth services... - 3 replies
Read the whole comment and replies

1. why not just all? - Daniele Cruciani (2014-02-04 09:15)
data separated from code should be a must... - 6 replies
Read the whole comment and replies




  Post a comment Post a comment   See comments See comments (11)   Trackbacks (0)  
  All package blogs All package blogs   PHP OAuth Library PHP OAuth Library   Blog PHP OAuth Library package blog   RSS 1.0 feed RSS 2.0 feed   Blog Moving OAuth Server C...