Spring Boot 3 - Spring Cloud Gateway - Angular App - Spring Authorization Server OAuth2

preview_player
Показать описание
Spring Boot 3
Spring Cloud Gateway
Angular App
Spring Authorization Server
OAuth2

Spring Boot Project

AngularApp

© 2022 Willy De Keyser, All Rights Reserved.
Рекомендации по теме
Комментарии
Автор

The quality of this videos are realy awesome. Thanks for sharing a so rich material with us. Regards.

alebarre
Автор

Do you have any plans in doing video on resilience 4j. It would be a good addition....Expecting a video on fault tolerance... Thanks for the excellent videos

rajeevjayaram
Автор

Very good tutorial, I would like to see an example of SSO with spring gateway, with authorization server separated from the gateway and with the resources server using the same authentication. I tried to play the video example with the github code but the github code is different from the code shown in the video.

saracristina
Автор

Thank you for this wonderful video.
Could you make video on how to log in our web app with github and google?

siyu
Автор

can we test the gateway using browserwithout using the Angular ?

rajeevjayaram
Автор

How can one get the claims(such as for instance role of the user) of the user in the angular part and do redirections accordingly? You can secure your apis depending on the role claim of the user but we need it in the angular app as well. When sending request to the resource server, it seems you do not use any token etc. Let us say, I want to redirect to the login page when requesting a certain page in the angular app, if, a) the user is not authenticated, b) the user is logged-in but its role is not sufficient. How can one do that?

codingstyle
Автор

So can we use OAuth Client as per one of your videos and Angular talking to resource server via Oauth client, So now the reason i ask is, the access token expiry will be handled by OAUTH Client reffresh mechanism. So does Spring cloud handle access token refresh etc. this means Angular need not worry of Access token validity etc. Am I missing something here in my logic ?

rajeevjayaram
Автор

Hi, Thanks for the tutorial. However, It seems that Spring Cloud Gateway app does not like any anti-virus or firewalls on Windows. I had to turn them off in order for the app to work. Otherwise one gets "site can't be reached" error. I wonder if anybody else got the same problem. However, I now get 500 server error. When I look at the exception logs in the console, I see that gateway is refused to reach angular app: I read this line among the logs: "Connection refused: no further information: /127.0.0.1:4200". In the application.yml file, we define among the routes the proxy to angular app. Here I tried both localhost and 127.0.0.1 but with no success. I wonder whether you might have an answer for this problem. Thanks for your help in advance.

codingstyle
Автор

Hi, Thanks for the great video, I am encountering a small issue.. after i login i am getting a Invalid user credentials page along with the link to auth server. I again click on the auth server link it get redirected and the routing works. can you please tell me why I am getting that Invalid user credential page after I lgin successully.

rajeevjayaram
Автор

Would it be possible to create a custom authentication and token generation on the authorization server? If so, would it be possible to generate this custom authentication from another authentication that was made by another authentication provider? Basically what I wanted was to be able to generate a token on my authorization server from user data that authenticates with another authentication provider and from that token generated by the external provider generate my personalized token for my application. Would this process be possible without having to go through two login pages, that of the external provider and that of the authorization server? I ask because in this case, to authenticate a user, it is only allowed using the gran_type authorization_code that requires going through a login page.

saracristina