Is there a way to use a login form from my angular 4 application and post to the identityserver 4 project in order to authenticate the Angular app.
I'm using oidc-client in the Angular app
Actually, to authenticate the Angular App, the user is redirect to the Identity Server 4 project where the login form is sit, then return back to the angular app with the token. This token is saved and used to call Web API application.
Thanks a lot
Below is my answer to the same question asked before:
Technically it is possible with "resource owner password flow", but in that model identity provider can not trust your application and will not create a session for your user. Thus such non-interactive approach is not truly SSO.
For 2019 the recommended flow for any web app such as Angular SPA is Code flow with PKCE extension, as described here or there.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With