In this video, we will be setting up Keycloak authorization on a Spring Boot application. This is in continuation to my previous video on basic Keycloak authentication in Spring Boot. Github Link: github.com/him...
Пікірлер: 16
@gurudattahh3345 Жыл бұрын
Hey thanks for this awesome tutorial... can you show how to return a custom response when 403 response is returned? Like I want to return "access not permitted" string response if it is 403
@h7sharma Жыл бұрын
Yes sure, I recently created this one - kzbin.info/www/bejne/hKrCoYRjp95ngas
@memsofgamers94793 ай бұрын
I have a CustomRegistroryClientRepository like CustomUserDetailsService, in users way we use AuthenticationManagerBuilder to set the userDetailsService is their any way like that to make my authorization server know about my customRegistredClientRepository please help me, Thank you in advance
@bhavnabhanu25133 ай бұрын
I have implemented the same way, I m getting 200 response but response body is coming empty please help me.
@todddavid91336 ай бұрын
Hi thanks for this great video. What version of keycloak are you using?
@h7sharma6 ай бұрын
Keycloak - Version 21.1.2
@todddavid91336 ай бұрын
@@h7sharma I'm getting PERMISSION_TOKEN_ERROR when trying to access /hello URI via Postman. This error is generated by keycloak server. I don't now what I'm missing here. Appreciate if you could help...
@h7sharma6 ай бұрын
Hi @@todddavid9133, It will be difficult to asses but let me give it a try. Could you check the token you are getting - does the issuer(iss) in that is resolved as localhost or some ip ? Hope you are using the same version and similar code as in my video (git repo). If not could you please share the git repo.
@farhannazmul4902 Жыл бұрын
Did you try with http method based policy enforcement? Where say there would be 2 resources with same uri while onr resource have policy for GET http method and other have policy with POST method?
@h7sharma Жыл бұрын
Hi Farhan, Nice question. I tried to figure it out but did not get anything yet, need to investigate more.
@codingispassion63763 ай бұрын
How to whitelist endpoints here ?
@mehmetkrml138111 ай бұрын
adamsın be , teşekkürler
@truongnguyenhoang57697 ай бұрын
hi i want to allow access 1 URL without token in my app server, please help me how to do that because when i add filter policy, it always reponse 403 if i dont have token
@dharmendrakumar-dr7ik Жыл бұрын
It is awesome.. could you please share git hub link
@h7sharma Жыл бұрын
Thank you. Here is the link: github.com/himanshuntwk/spring-projects/tree/main/spring-keycloak-auth