Skip to content

Commit

Permalink
Merge pull request #35 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 2.3.0
  • Loading branch information
fillup authored Nov 21, 2017
2 parents e74692c + c633dec commit c997c09
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 5 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [2.3.0] - 2017-11-20
### Added
- Can now specify `require_mfa` (`'yes'` or `'no'`) when creating or updating
a user.

## [2.2.1] - 2017-11-14
### Fixed
- Updated error message when the list of trusted IP ranges is not an array to
include what the given trusted IP ranges was (including data type).

## [2.2.0] - 2017-11-09
### Added
- Throw custom exception type when `mfaVerify` gets a `429 Too Many Requests`
Expand All @@ -28,7 +38,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Initial version of ID Broker API client.

[Unreleased]: https://github.com/silinternational/idp-id-broker-php-client/compare/2.2.0...HEAD
[Unreleased]: https://github.com/silinternational/idp-id-broker-php-client/compare/2.3.0...HEAD
[2.3.0]: https://github.com/silinternational/idp-id-broker-php-client/compare/2.2.1...2.3.0
[2.2.1]: https://github.com/silinternational/idp-id-broker-php-client/compare/2.2.0...2.2.1
[2.2.0]: https://github.com/silinternational/idp-id-broker-php-client/compare/2.1.2...2.2.0
[0.2.1]: https://github.com/silinternational/idp-id-broker-php-client/compare/0.2.0...0.2.1
[0.2.0]: https://github.com/silinternational/idp-id-broker-php-client/compare/0.1.0...0.2.0
Expand Down
8 changes: 6 additions & 2 deletions features/request/request.feature
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Feature: Formatting requests for sending to the ID Broker API
And I provide an "email" of "[email protected]"
And I provide a "locked" of "no"
And I provide an "active" of "yes"
And I provide a "require_mfa" of "no"
When I call createUser
Then the method should be "POST"
And the url should be "https://api.example.com/user"
Expand All @@ -71,7 +72,8 @@ Feature: Formatting requests for sending to the ID Broker API
"username": "john_smith",
"email": "[email protected]",
"locked": "no",
"active": "yes"
"active": "yes",
"require_mfa": "no"
}
"""

Expand All @@ -82,6 +84,7 @@ Feature: Formatting requests for sending to the ID Broker API
And I provide a "display_name" of "Johnny"
And I provide a "locked" of "yes"
And I provide an "active" of "yes"
And I provide a "require_mfa" of "yes"
When I call updateUser
Then the method should be "PUT"
And the url should be "https://api.example.com/user/12345"
Expand All @@ -91,7 +94,8 @@ Feature: Formatting requests for sending to the ID Broker API
{
"display_name": "Johnny",
"locked": "yes",
"active": "yes"
"active": "yes",
"require_mfa": "yes"
}
"""

Expand Down
14 changes: 12 additions & 2 deletions features/response/response.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ Feature: Handling responses from the ID Broker API
"username": "john_smith",
"email": "[email protected]",
"active": "yes",
"locked": "no"
"locked": "no",
"mfa": {
"prompt": "no",
"nag": "yes",
"options": []
}
}
"""
When I call authenticate with the necessary data
Expand Down Expand Up @@ -76,7 +81,12 @@ Feature: Handling responses from the ID Broker API
"username": "john_smith",
"email": "[email protected]",
"active": "yes",
"locked": "no"
"locked": "no",
"mfa": {
"prompt": "no",
"nag": "yes",
"options": []
}
}
"""
When I call getUser with the necessary data
Expand Down
12 changes: 12 additions & 0 deletions src/descriptions/id-broker-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@
'enum' => ['yes', 'no'],
'location' => 'json',
],
'require_mfa' => [
'required' => false,
'type' => 'string',
'enum' => ['yes', 'no'],
'location' => 'json',
],
],
],
'deactivateUserInternal' => [
Expand Down Expand Up @@ -262,6 +268,12 @@
'enum' => ['yes', 'no'],
'location' => 'json',
],
'require_mfa' => [
'required' => false,
'type' => 'string',
'enum' => ['yes', 'no'],
'location' => 'json',
],
],
],
],
Expand Down

0 comments on commit c997c09

Please sign in to comment.