Test coverage for LeagueOAuth2Provider.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Switch type-hint to API route as only these routes will be authenticated.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Fixed bug where a null response from Guard would error out.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Test coverage for BasicProvider.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Shifting authorization header test to own test file.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Adding test to cover using a specific provider.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Use call_user_func so users can use different types of callable.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Properly convert the method name to camel case before calling.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
More testing for the response factory.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Removed formatOther because non-formattable responses are returned as they are.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Test coverage for the JSON response formatter.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Test coverage for JSONP response formatter.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Allow the callback parameter name to be changed in the constructor.

Signed-off-by: Jason Lewis <jason.lewis1991@gmail.com>
Merge remote-tracking branch 'upstream/develop' into jwt
refactoring tests and fixing abstract authenticate method compatibility