Comments (2)
I had the same problem, my webapp stopped functioning after upgrading to KC20 as the call to userinfo returned a null object. I made a few tests with Postman and I found out that KC was returning "unauthorized" due to a missing 'openid' scope in the token request.
As a quick fix I added 'openid' to the getDefaultScopes() function in src/Provider/Keycloak.php:
/**
* Get the default scopes used by this provider.
*
* This should not be a complete list of all scopes, but the minimum
* required for the provider user interface!
*
* @return string[]
*/
protected function getDefaultScopes()
{
return ['profile', 'email', 'openid'];
}
I understand this is just a quick fix and that there could be some other broken changes carried by the KC20 upgrade, but for the moment it fixed my webapp problem.
from oauth2-keycloak.
@micbis Released as new version 3.2.0
from oauth2-keycloak.
Related Issues (20)
- Guzzle >= 7 breaks HOT 2
- CVE in Firebase PHP-JWT before 6.0.0 HOT 14
- Token verification failed
- Add support for keycloak version HOT 4
- Allow redirect without id_token_hint
- Make some methods of Keycloak class public
- README.md Authorization Code Flow HOT 1
- BC Break on v6 of firebase/php-jwt HOT 1
- Failed to parse JSON response HOT 8
- Id_token_hint HOT 1
- implement pkceMethod == S256
- Return Groups in Access Token HOT 1
- Bug: the provider doesn't return the status code from AbstractProvider HOT 6
- Upgrade to 5.0.0: Missing Changelog or Upgrade Document HOT 3
- Warning: 4.0.0 is incompatible with firebase/php-jwt >= 6.6.0
- Failed to get resource owner: Invalid response received from Authorization Server. Expected JSON. HOT 1
- I can't fetchUserFromToken HOT 5
- Keycloak includes the session token in the URL
- check-sso
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauth2-keycloak.