mariovalney / laravel-keycloak-web-guard

Simple Keycloak Guard to Laravel Web Routes - https://packagist.org/packages/vizir/laravel-keycloak-web-guard
146 stars 80 forks source link

Auth validate token (Call back) #77

Closed artisan-dheeraj closed 2 years ago

artisan-dheeraj commented 2 years ago

Token response:

array:9 [▼
  "access_token" => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  "expires_in" => 600
  "refresh_expires_in" => 1800
  "refresh_token" => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  "token_type" => "Bearer"
  "id_token" => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
  "not-before-policy" => 1657200816
  "session_state" => "b97cd4e0-bbc1-420c-80d9-9858a36807b1"
  "scope" => "openid email profile roles"
]

Auth::validate($token) returning null

mariovalney commented 2 years ago

Hi! I've edited your post to avoid sharing tokens. (I'm sorry but I'm afraid I'm not able to answer support questions right now.)

artisan-dheeraj commented 2 years ago

@mariovalney It was my fault, My default guard was not web. Your package working great. Thanks