I need to work with this openid-connect library in php : https://bitbucket.org/PEOFIAMP/phpoidc/src/master/
I installed it, buy i have random values :
THose values come from create_db.sql. So I installed the phpOP/phpRP folders in my www folder using Laragon, and all dependencies.
I want to use this library with my personal KeyCloak. So i added a realm in my KeyCloak :
https://keykloackadress/auth/realms/my-personal-project/
I also created a client :
client_id : myproject
client_secret : 6f5886cb-c523-4755-8e53-d6e69d0faeff
This client contains a lot of different users.
GOAL :
I would like to use my personal Keycloak as an Identity Provider, with this library : 1/ Can I link all my infos from my personal Keycloak ? I dont want to use databases. 2/ I would want to do a simple page which can get any information about my Keycloak. For example, in my code, I can want to add an input, and if i ask the user_id of the user n.thomas, i get it.
I dont really need the RP part I guess for this ?
This should be very simple, but i have no idea how to do it. Where to put my Keycloak url etc.. I would like to understand how this work, I didnt find a lot of documentation / samples about this phpoidc library. So any would be very helpful.
Thank you by advance.
Aucun commentaire:
Enregistrer un commentaire