Skip to content

Commit 2aff341

Browse files
authored
Update deps to support laravel 8.0 (okta#124)
1 parent be9bc91 commit 2aff341

File tree

6 files changed

+236
-160
lines changed

6 files changed

+236
-160
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ script:
1818
- if [[ $TRAVIS_EVENT_TYPE != "cron" ]]; then XDEBUG_MODE=coverage vendor/bin/phpunit --verbose --coverage-clover build/logs/clover.xml; fi
1919
- if [[ $TRAVIS_EVENT_TYPE = "cron" ]]; then bash ./scripts/cron-test.sh; fi
2020
after_success:
21-
- if [[ $COVERAGE = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
21+
# - if [[ $COVERAGE = 'true' ]]; then bash <(curl -s https://codecov.io/bash); fi
2222
- if [[ $DEPLOY_DOCS = 'true' ]]; then wget -O sami.phar http://get.sensiolabs.org/sami.phar;
2323
fi;
2424
- if [[ $DEPLOY_DOCS = 'true' ]]; then chmod +x ./scripts/prepare-docs.sh; fi

README.md

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ $profile->setFirstName('John')
9696
->setEmail('auser@example.com');
9797
$user->setProfile($profile);
9898

99-
$credentials = new \Okta\Users\Credentials();
99+
$credentials = new \Okta\Users\UserCredentials();
100100

101-
$password = new \Okta\Users\Password();
102-
$password->setPassword('Abcd1234!');
101+
$password = new \Okta\Users\PasswordCredential();
102+
$password->setValue('Abcd1234!');
103103

104-
$recoveryQuestion = new \Okta\Users\RecoveryQuestion();
104+
$recoveryQuestion = new \Okta\Users\RecoveryQuestionCredential();
105105
$recoveryQuestion->setQuestion('What Language do I write in?')
106106
->setAnswer('PHP!');
107107

108108

109-
$provider = new \Okta\Users\Provider();
109+
$provider = new \Okta\Users\AuthenticationProvider();
110110
$provider->setName('OKTA')
111111
->setType('OKTA');
112112

@@ -118,10 +118,6 @@ $credentials->setProvider($provider);
118118

119119
$user->setCredentials($credentials);
120120

121-
$user->setGroupIds([
122-
'00gajavp1anBX8svy0h7',
123-
'00gajb08d19WCvbsC0h7'
124-
]);
125121

126122
$user->create();
127123
```
@@ -132,12 +128,11 @@ profile.
132128

133129
```php
134130
$user = new \Okta\Users\User();
135-
$foundUser = $user->get('00uak5dkxjhg4AQ230h7');
136-
$profile = $foundUser->getProfile();
137-
$profile->middleName = 'Middle Name';
138-
$profile->someField = 'Just Testing Field';
139-
$foundUser->setProfile($profile);
140-
$foundUser->save();
131+
$foundUser = $user->get('00unz7r7oRzov7Hm55d6');
132+
$profile = $foundUser->getProfile();
133+
$profile->middleName = 'Middle Name';
134+
$foundUser->setProfile($profile);
135+
$foundUser->save();
141136
```
142137

143138
## Pagination and Collections
@@ -155,7 +150,7 @@ $firstUser = $users->first();
155150
### Narrowing Responses
156151
To start at the second entry and get the next two items:
157152
```php
158-
$users = (new \Okta\Okta)->getUsers(['query' => ['limit' = 2, 'after' = 2]]);
153+
$users = (new \Okta\Okta)->getUsers(['query' => ['limit' => 2, 'after' => 2]]);
159154
```
160155

161156
## Caching

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
"php-http/message": "^1.11",
1818
"php-http/discovery": "^1.13",
1919
"php-http/curl-client": "^2.2",
20-
"symfony/yaml": "^3.2|^4.3",
20+
"symfony/yaml": "^3.2|^4.3|^5.0",
2121
"nesbot/carbon": "^2.0",
22-
"illuminate/collections": "8.29.0",
23-
"guzzlehttp/psr7": "1.7.0",
22+
"illuminate/collections": "^8.29.0",
23+
"guzzlehttp/psr7": "^1.7.0",
2424
"psr/cache": "^1.0",
2525
"league/flysystem-memory": "^1.0",
2626
"cache/filesystem-adapter": "^1.0",
27-
"vlucas/phpdotenv": "^3.3|^4.1",
28-
"lcobucci/jwt": "^4.0@alpha",
27+
"vlucas/phpdotenv": "^3.3|^4.1|^5.3",
28+
"lcobucci/jwt": "3.4.3 | ^4.0",
2929
"http-interop/http-factory-guzzle": "^1.0"
3030
},
3131
"require-dev": {

0 commit comments

Comments
 (0)