Skip to content

Commit

Permalink
Merge pull request #65 from auth0/4.x.x-dev
Browse files Browse the repository at this point in the history
allow to configure the algorithm supported for token verification
  • Loading branch information
glena authored Jan 27, 2017
2 parents 8569156 + 924fe4b commit 835a267
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Auth0/Login/Auth0Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function decodeJWT($encUser)

$verifier = new JWTVerifier([
'valid_audiences' => [config('laravel-auth0.client_id'), config('laravel-auth0.api_identifier')],
'suported_algs' => config('laravel-auth0.supported_algs', ['HS256']),
'client_secret' => config('laravel-auth0.client_secret'),
'authorized_iss' => config('laravel-auth0.authorized_issuers'),
'secret_base64_encoded' => $secret_base64_encoded,
Expand Down
9 changes: 9 additions & 0 deletions src/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,13 @@
*/
// 'secret_base64_encoded' => true,

/*
|--------------------------------------------------------------------------
| Supported algs by your API
|--------------------------------------------------------------------------
| Algs supported by your API
|
*/
// 'suported_algs' => ['HS256'],

);

0 comments on commit 835a267

Please sign in to comment.