When setting up my angular app with ADAL, I followed the instructions provided in this link:
On the login page, there is a button that redirects to the Azure login page. After successfully logging in, I am redirected to the home page. However, after a moment, the website refreshes and returns to the login page, even though I am already logged into Azure. This return always happens to the page where the process started (I confirmed this by starting from the home page).
In another angular website that I developed, ADAL is also used for Azure authentication and everything works smoothly, despite having identical package versions.
ADAL Config
public get getAdalConfig(): any {
return {
tenant: environment.AzureTenantID,
clientId: environment.AzureApplicationID,
redirectUri: window.location.origin + '/id_token',
postLogoutRedirectUri: window.location.origin + environment.IISredirectURL, // directly return to login after logoff
cacheLocation: 'localStorage',
}
}
Does anyone have any insights on how to resolve this issue?