Angular7+Spring Boot Security Login Basic Authentication

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

thank you very much, it helped me a lot :)

cristianarias
Автор

Can you tell me, how to achieve basic authentication in angular without spring boot ??

nikhilsharma
Автор

Hi man, nice tutorial, if i have the username and password in my sql database, how can i login with that? Do i need to do some callback? I've done the spring table with hybernet and i have the table with username and password, how can i use them?

gangamshow
Автор

We have always to send the header with username and password, in order to be able to call a controller method in spring am I right?

hueseyinguendogan
Автор

Hi sir i want same code angular +SpringBoot Security Login Example Using Basic Authentication but using database mysql and role base login ( USER, ADMIN) note hard coded username and password. have you any Video for this?

gauravverma
Автор

Again, one more best video by JavaInUse.
Just one thing i do not understand here, why username is 'user' and not anything else.
If i enter username as 'admin' in postman, I am not getting any response.

anm_
Автор

i implemented this code: let username = 'dhruv';
let password = '12345';
const headers = new HttpHeaders({Authorization : 'Basic' + btoa(username + ':' +password )});




but it is not working and even there are no errors in console..Please help me!!!


AND THANKS FOR THE TUTORIAL.

dhruvupadhyaya