
In order to migrate IDP from LV 4.x to latest LV version, following task were performed: * Updated namespace to be complain with PSR-4 * General Refactoring: moved all DB access code from services to repositories. * Migration to LV 5.X: these migration guides were applied - https://laravel.com/docs/5.3/upgrade#upgrade-5.0 - https://laravel.com/docs/5.3/upgrade#upgrade-5.1.0 - https://laravel.com/docs/5.3/upgrade#upgrade-5.2.0 * Improved caching: added repositories decorators in order to add REDIS cache to queries, entities Change-Id: I8edf9f5fce6585129701c88bb88332f242307534
18 lines
847 B
Gherkin
18 lines
847 B
Gherkin
Feature: Get OAuth2 Auth Code
|
|
|
|
Background:
|
|
Given Prepare For Tests is Done
|
|
|
|
Scenario: Get Auth Code With Login
|
|
Given these OAuth2 parameters:
|
|
| param | value |
|
|
| client_id | Jiz87D8/Vcvr6fvQbH4HyNgwTlfSyQ3x.openstack.client |
|
|
| redirect_uri | https://www.test.com/oauth2 |
|
|
| response_type | code |
|
|
| scope | profile |
|
|
And exits client Id "Jiz87D8/Vcvr6fvQbH4HyNgwTlfSyQ3x.openstack.client"
|
|
And navigate to controller action "OAuth2\OAuth2ProviderController@auth" with HTTP method "POST"
|
|
When i get log as user "test@test.com" using password "1qaz2wsx"
|
|
And allow consent "AllowOnce"
|
|
Then i get a valid Auth code
|