Hybrid Authentication Scenario

Hi,

We have a hybrid authentication scenario requirement in our ASP.NET Core application.

  1. Normal authentication with username/password
  2. Log in automatically from the c# code with a service account username/password or token (No UI) of specific url parameter.

Flow:
Hit a specific url
Check if specific url parameter is present and valid
Yes: log in automatically with service account
No: redirect to login page

Is it possible to achieve this?
If yes, is there any examples that we can use?

Thanks in advance
Have a great day :slight_smile:

Hi @dlachance

This can be achieved by leveraging the authentication API server side and then bringing the sessionToken to the client-side, using the /login/sessionCookieRedirect endpoint as described here.

In short, this would be the scenario steps:

1 Like

Works perfectly :)!

Thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.