Conversation
blizzz
left a comment
There was a problem hiding this comment.
cannot say much about it… but at least some bikeshedding
| public function authorize($client_id, | ||
| $state) { | ||
| $state, | ||
| $response_type) { |
There was a problem hiding this comment.
No I can't change those as they are post variables and defined in the OAuth spec
| */ | ||
| public function getToken($code) { | ||
| $accessToken = $this->accessTokenMapper->getByCode($code); | ||
| public function getToken($grant_type, $code, $refresh_token, $client_id, $client_secret) { |
There was a problem hiding this comment.
No I can't change those as they are post variables and defined in the OAuth spec
| // Set the 3600 second timeout on all tokens | ||
| foreach ($tokens as $token) { | ||
| try { | ||
| $appToken = $this->tokenProvider->getTokenById($token->getTokenId()); |
There was a problem hiding this comment.
would it have a better memory footprint if we deal with that inside the while-loop above?
There was a problem hiding this comment.
yes fair enough let me fix that...
3580a75 to
a7568bc
Compare
Codecov Report
@@ Coverage Diff @@
## master #9517 +/- ##
========================================
Coverage ? 51.7%
Complexity ? 25757
========================================
Files ? 1644
Lines ? 96569
Branches ? 1393
========================================
Hits ? 49932
Misses ? 46637
Partials ? 0
|
| } | ||
|
|
||
| // The client id and secret must match. Else we don't provide an access token! | ||
| if ($client->getClientIdentifier() !== $client_id || $client->getSecret() !== $client_secret) { |
There was a problem hiding this comment.
with grant_type = 'refresh_token' client_id and and secret are not provided. Unless I oversaw a thing? yes, i did, all right
ChristophWurst
left a comment
There was a problem hiding this comment.
Code looks good
Found one unused variable
|
|
||
| $cursor = $qb->execute(); | ||
|
|
||
| $tokens = []; |
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
On a refresh token request: * rorate * reset expire Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
a7568bc to
461998d
Compare
No description provided.