Login from an external system using ASP.NET MVC

Asked

Viewed 224 times

0

I need to implement a form of my system (written in ASP.NET MVC) to log in from an external system to which I do not have the source code. This external system uses the same users of my system. How do I, when logging into my system, also log into the other system?

  • Let me get this straight. Do you want the user to authenticate on your system and automatically authenticate on another that you don’t have access to sources? That’s what you’re looking for?

  • exactly. I can’t change the external system

  • 1

    you need to interact with it through a service (an API, a Webservice...) and that other system has to provide this service so that you can consume...

  • The external system has a correct login screen?

  • -1 for requesting a tutorial.

  • @Randrade technically there is no right answer? Is that illegal? If a system that does not provide alternative means of authentication, trying otherwise would not be illegal?

  • no, my system needs to communicate with a client-used Helpdesk system.

  • Yes, the external system has a login screen

  • @durtto Illegal is not because it owns the user and password. Illegal would be if it "forced" the password break, or something invasive.

Show 4 more comments

1 answer

1

In short, the way you described, there’s no way to do that.

They are two distinct systems, without web service or any type of authentication together, except the same users and passwords.

Only with these factors it is not possible to do what you want, even for safety reasons.

If there was a Web Service for authentication, or other mechanism, such as Oauth from Google, that might be possible.

Possible attempt

An attempt to do this is to develop a Web Crawler to fill in the data entered in your system (after authentication) on the login screen of the external system. However, this can be relative in the type of authentication used in the other system.

Another attempt is to develop a functionality on the external system to receive the authentication data (preferably encrypted) and perform the authentication on the other system. But this would require modification in the external system, as there should be no such functionality.

  • in case, very briefly, I’m wanting to do a Sign-Sigle-On

  • @Gustavocorreiasantos I understood. But without access to the code of the external system, it is not possible to do this.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.