How can I auto-logged a user inside a Sharepoint Web Part?

Víctor 1 Reputation point


I have a website "Play web". When I want to access into this site I have to login previously with user/pass. An authtentication module, handle this info and starts a communication with an Azure AD. If the user is validated properly using a callback the control is returned to the Play Web with the user logged. All these steps works fine.

Where is the problem?. One of our clients wants to embed this "Play web" inside his Sharepoint but he doesn't want relogin. He needs to use the Sharepoint context to autologged the user into the website.

Is there any way to do this?, Should have I setup something in Azure AD: Proxy, Function?, Which is the easiest way to do this?

I'm stuck with this.


Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,092 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 35,616 Reputation points Microsoft Employee

    You should be able to use "Keep Me Signed In" (KMSI) to keep the user logged in for 30 days. They will eventually need to login again though.