Send login details to Identity server via Angular 12

Viewed 156

I want to pass my username and password to IdentityServer using Angular 12. I tried but cannot send it because I cannot identify the endpoint. Instead of the Angular login page, I send details via the .cshtml page. Please someone who could help me will be appreciated.

1 Answers

You are not supposed to send user username/password to IdentityServer from your angular application, instead you should redirect the user to IdentityServer and let the user authenticate there and then redirect back to your Angular application. That is how OpenID-Connect/IdentityServer is supposed to work.

Related