Comments (5)
Hi!
Docker is very tricky (at least for me hahaha).
Here I have a working example with docker-compose and network to allow both communicate.
https://github.com/mariovalney/laravel-keycloak-web-guard-example
from laravel-keycloak-web-guard.
Hm, as i see, your keycloak Part and mine are simular
from laravel-keycloak-web-guard.
I refactor this for my case, that i use the "intern" host to get the OpenId Config, and parse it like this:
protected function parseOpenidConfiguration(array &$configuration): void
{
$blackList = ['token_endpoint', 'userinfo_endpoint'];
foreach ($configuration as $key => $item) {
if (filter_var($item, FILTER_VALIDATE_URL) && !in_array($key, $blackList)) {
$parsedUrl = parse_url($item);
$configuration[$key] = sprintf(
'%s://%s%s',
$parsedUrl['scheme'],
$parsedUrl['host'],
$parsedUrl['path']
);
}
}
}
This works, but in the getUserProfile() Method, the Token is not valid. I check this with an curl command and got the same error. Is there an different in the token because of the URL?
from laravel-keycloak-web-guard.
In getUserProfile we request userdata to the Keycloak endpoint.
Maybe this request is failing?
from laravel-keycloak-web-guard.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from laravel-keycloak-web-guard.
Related Issues (20)
- Adding optional scopes
- Logout if connect in other devices
- [Keycloak Error] User cannot be authenticated HOT 1
- Logout while invalid state..
- Web and Web service in single application.
- Can't Get status or enabled user keycloak HOT 1
- Logout url missing error when trying to authenticate
- I am available to join the maintainer team. HOT 1
- Auth driver [keycloak-web] for guard [web] is not defined. HOT 10
- Looping infinito de login do Keycloak Can HOT 4
- How to make it work with Eloquent?
- Wrong intent is stored by Laravel because it ignores the proxies that are not direct clients and there is no fix. HOT 3
- $url->forceRootUrl not added to keycloak-web.redirect_url
- alteração no comportamento do middleware keycloak can HOT 4
- after redirecting auth()->user() returns an empty record HOT 2
- KEYCLOAK_REALM_PUBLIC_KEY HOT 2
- [Keycloak Error] Invalid state in IFRAME HOT 1
- Call to undefined method Vizir\KeycloakWebGuard\Auth\Guard\KeycloakWebGuard::loginUsingId() HOT 2
- Vizir\KeycloakWebGuard
- Keycloak 21+ HOT 1
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 laravel-keycloak-web-guard.