Spring Security using OAuth2 in Spring Boot | Tech Primers

Spring Security using OAuth2 in Spring Boot | Tech Primers

Tech Primers

6 лет назад

263,806 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@srinumadaka3310
@srinumadaka3310 - 05.07.2022 21:18

Nice Explanation Sir.....

Ответить
@shalinithennarasu2069
@shalinithennarasu2069 - 27.04.2022 09:28

Thanks!!

Ответить
@microsoftsoft3014
@microsoftsoft3014 - 11.03.2022 20:17

Nice video, good explanation, I have a question, can I implement OAuth2 authorization with code flow to call an API from another API?

Ответить
@pankajsharma31
@pankajsharma31 - 02.03.2022 18:02

The spring started you added is missing while i was working

Ответить
@ashwanip7213
@ashwanip7213 - 22.01.2022 18:10

why did you add background music... it is irrtating

Ответить
@narayanaswamyboppa3840
@narayanaswamyboppa3840 - 17.10.2021 18:54

Hi, When we need to go for OAuth2 and we need to go for JWT, and in which scenario goes for the certificates in the app server.

Ответить
@singarajusreedhar
@singarajusreedhar - 06.09.2021 04:53

What is that irritating "right" every now and then

Ответить
@syedrahim7695
@syedrahim7695 - 04.09.2021 14:07

Excellent

Ответить
@manideepkumar959
@manideepkumar959 - 05.07.2021 18:06

U should have paint to give an overview,ur telling every thing orally,we r unable to imagine orally,next time pls use some slides or diagrams

Ответить
@chatrughanprasad7778
@chatrughanprasad7778 - 06.06.2021 22:17

Thank you for providing this

Ответить
@horstweinert7204
@horstweinert7204 - 16.04.2021 19:43

Would this still work currently? I followed this 100% but currently it critizies me for missing authentication and does not load the pages

Ответить
@narkhedeulka
@narkhedeulka - 02.03.2021 21:34

Hi, I am using same code but I am getting this error This XML file does not appear to have any style information associated with it. The document tree is shown below.
<oauth>
<error_description>Full authentication is required to access this resource</error_description>
<error>unauthorized</error>

</oauth>

Ответить
@maduniverse839
@maduniverse839 - 25.01.2021 10:13

worst tutorial ever............

Ответить
@dansb8432
@dansb8432 - 25.01.2021 03:04

Great video bruh

Ответить
@vivekm2674
@vivekm2674 - 19.01.2021 07:42

I think this is just authentication. You have not done any authorization here. The principal you are displaying is returned during authentication.
Authorization would involve making a call to the auth server with grant_type= authorization_code and code=<auth_code>. That call will return an access token, which will then be used to call a protected resource. That flow is called Grant type: Authorization Code
There is another one called Grant Type: Client credentials, where you pass client id and client secret to the auth server and directly get access token (the call to get auth code is skipped).

Ответить
@bryanliu727
@bryanliu727 - 12.01.2021 06:20

Good tutorial, but it is outdated now.

Ответить
@mahendharb5174
@mahendharb5174 - 01.01.2021 20:41

awesome

Ответить
@manojyadavofficial8535
@manojyadavofficial8535 - 18.12.2020 13:41

Nice contents

Ответить
@viveksingh-rt4py
@viveksingh-rt4py - 03.12.2020 20:48

Hi Ajay,

Excellent explanation. Very well done.

May I ask one question. We can restrict API access inside a resource server based on Role. In your video you have mentioned that Auth Service can be from google and resource server can be on local machine. If validation happens at Google then how role will be assigned. Google role may not be relevant for our local resource server .

Thanks,
Vivek

Ответить
@michaeldeng1981
@michaeldeng1981 - 12.09.2020 18:08

It's practical, but it won't explain how spring security works. You could just read the code from github in 5 mins, no need to watch it for 1 hour

Ответить
@pavankumar-zi5le
@pavankumar-zi5le - 16.08.2020 15:48

how to implement authorization in swagger can you prepare that video please

Ответить
@divinejakiro3656
@divinejakiro3656 - 28.07.2020 14:40

May i know what is the Oauth2 version in this video?

the one i tried, seem like no more "@EnableOAuth2Sso"

Ответить
@arvindynr
@arvindynr - 17.07.2020 18:55

the concepts in this video are depriciated. This video doesn't work.

Ответить
@shivakumar-te7td
@shivakumar-te7td - 13.06.2020 18:50

Hi Did anyone got this error while starting the authentication server
Description:
Field authenticationManager in com.techprimer.security.springsecurityauthserver.config.AuthorizationServerConfig required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:
Consider defining a bean of type 'org.springframework.security.authentication.AuthenticationManager' in your configuration.

Ответить
@ChittipoluSA
@ChittipoluSA - 03.06.2020 21:05

It's very nice video thanks lot, can you please post video with JWT and with out form authentication of oauth2

Ответить
@SoumikNathan
@SoumikNathan - 17.05.2020 11:18

just wanted to understand if the Oauth authorization along with authentication that you have shown in your code - is it covering OIDC flow as well?

Ответить
@RajKumar-wf8nm
@RajKumar-wf8nm - 08.05.2020 10:46

Thanks Buddy for sharing your experience and knowledge...

Ответить
@Mohamed-uf5jh
@Mohamed-uf5jh - 05.05.2020 02:24

Great Job , Thank you So much !!

Ответить
@makhijaroma
@makhijaroma - 15.04.2020 05:57

Hi, is it possible to have two different oauth providers in the same application. And use them conditionally based on the requested url?

Ответить
@sunilbiswal4672
@sunilbiswal4672 - 10.04.2020 17:38

good job sir

Ответить
@jayaramkolla8396
@jayaramkolla8396 - 04.04.2020 22:48

while access the url localhost:8082/ui then i am facing issue. org.springframework.security.oauth2.client.resource.UserRedirectRequiredException: A redirect is required to get the users approval.can any one help me. out

Ответить
@Kevinma65536
@Kevinma65536 - 10.03.2020 09:39

Not useful for 2020. Waste half an hour

Ответить
@samhonarvar6205
@samhonarvar6205 - 03.03.2020 22:33

I could have just downloaded the source code and go through that. He doesn't explain anything besides reading on what he types. Very low quality tutorial (if this is considered tutorial to begin with)

Ответить
@sachinbhalla8033
@sachinbhalla8033 - 18.02.2020 10:57

Is there any PDF while for code or link

Ответить
@skd181086
@skd181086 - 28.01.2020 04:45

Very good tutorial..thank you so much. Could you please explain why was the oAuth extra dependency required?

Ответить
@sush2142
@sush2142 - 20.01.2020 21:52

This is so damn difficult.

Ответить
@amruteshwarbichewar1731
@amruteshwarbichewar1731 - 12.01.2020 11:29

u have to elaborate more the concept of configuration

Ответить
@soniajain07
@soniajain07 - 06.01.2020 10:49

Hi Ajay,
I was looking for integration of spring boot with keycloack. Without using keycloak adapter . I want to use oauth2 and keycloak for rest api. I dont need any login screen just rest api which takes access token

Ответить
@ashwinpalesha7410
@ashwinpalesha7410 - 20.10.2019 13:23

I want to integrate google fit into my application and get data from there. How can i do this?

Ответить
@hamsalekhavenkatesh3440
@hamsalekhavenkatesh3440 - 13.10.2019 00:17

WebMVConfigurerAdaptor is deprecated :(

Ответить
@chinmayabehera513
@chinmayabehera513 - 04.10.2019 15:37

Awesome Video. I want call third party api using java code,which has implemented oAuth2.0 to secure the APIs.
1st I got the access_token from that Service.
Secondly, I want to send a POST request to one api, by sending stringXML and access_token. So, which method of RestTemple should I use??? If there is any best approach please let me know.

Ответить
@haster66
@haster66 - 30.09.2019 09:43

setting the token in the cookie is a major vulnerability !!! the correct implementation is that the auth code shall be sent to the server side by web redirect, and then it shall be used in a server to server call to acquire the access token. the access token shall only be used on the back channel, which is the server to server call. single page applications can utilize PKCE update on the auth code grant type.

Ответить
@sainathmachunur4138
@sainathmachunur4138 - 30.08.2019 15:40

Nice video bro..i have one doubt,you explained about Authorizing secure URL etc..and where is the concept of access token and authorization code and where we are generating those.Can you tell how to test this in POSTMAN without that client project?

Ответить
@sudhiris056
@sudhiris056 - 25.08.2019 19:12

Doesn't work following this tutorial. It throws AuthenticationManager authowired bean exception while starting up the authorization server

Ответить
@kamalakannang7455
@kamalakannang7455 - 18.08.2019 06:58

Most videos will have just theory, but this has totally other side - just code without any explanation about the concept. ClientId/ClientSecret are for client application not for user as you mentioned in the video. I think authentication information will be in Authorization server not in resource server as you have put authentication manager in resource server configuration. After seeing this video, I have more confusion, then clarity – I think I have wasted one hour. Usually your videos are good but definitely not this one. Please give more information while coding so that so that the viewer can understand what the code is for. May be I am having too much expectation for your videos because of your other quality videos :(

Ответить