Context :
I want to use this OpenID connect library in PHP ( https://bitbucket.org/PEOFIAMP/phpoidc/src ) with KeyCloak.
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 Keycloak as an Identity Provider, and step by step. First, I want to, for example, get the Keycloak user_id of an user.
For example, in my code, I can 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.
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.
Thanks by advance.
Aucun commentaire:
Enregistrer un commentaire