Click here to Skip to main content
15,885,925 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more: , +
Dears,

How to authenticate and authorize an application that is already developed using asp.net mvc and extjs using the identityserver4?
The authorization server has a login-screen which will be used to authenticate users. The scenario I faced is, I need to use a common login-screen so that I login into the application that is already functioning?

What I have tried:

i have a working identityserver service (the authorization server) and a client javascript (extjs) login screen or the client side that can be used for the entire system..
Posted
Updated 3-Sep-19 3:00am

1 solution

Quote:
The authorization server has a login-screen which will be used to authenticate users. The scenario I faced is, I need to use a common login-screen so that I login into the application that is already functioning?
It seems as if you are trying to implement OAuth. Which means, that you want to authenticate and authorize the users from an external auth system. Right?

Well, that needs to have extra coding in the application to support OAuth, which is not possible in QA, and you might want to explore an article, like this one: Introduction to OAuth in ASP.NET MVC[^].
 
Share this answer
 
Comments
Yonathan1111 4-Sep-19 6:45am    
Hello Afzaal,

I really appreciate and it is a great input for me what you have recommended, so I continued working on it, however, I have a sample working project whereby an Mvc-Client get authenticated by an IdentityServer4 and it uses OpenId, what I have noticed is when a link is get clicked it navigates to a login screen withing the identityserver4 application, so my question is what is really happening?
Afzaal Ahmad Zeeshan 4-Sep-19 9:33am    
That project uses an OpenId token, it would be great if you can read an article that explains the overall flow for that: https://medium.com/@darutk/diagrams-of-all-the-openid-connect-flows-6968e3990660

It is a bit broader topic to cover in a single QA, please understand. :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900