Getting login page after every time when reopen the browser and enter URL in address bar and it is not showing the application home page

Dinesh Gandhi 0 Reputation points
2024-11-11T08:08:17.8533333+00:00

Hi Team,

First time after clear the browser cookies and all I successfully login into the application with fill the token and all but when I close the browser and re open and enter the URL. page load multiple time after that it shows me the Microsoft login page. Can anyone from community please help me to resolve this issue. I m stuck from last 3 days.
I have used the OpenID Connect to implement Azure AD and used the attached code for this

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,454 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Harshitha Eligeti 895 Reputation points Microsoft Vendor
    2024-11-11T23:10:09.4566667+00:00

    Hi @Dinesh Gandhi • 
    Thank you for sharing your issue on Microsoft Q&A.   

    I Understand that you are facing an issue with your application's login flow. It seems you're experiencing issues with Azure AD authentication using OpenID Connect after closing and reopening your browser.   

    Based on your response, it seems like the issue might be related to the expiration time of the authentication token. By default, the authentication token issued by Azure AD has a validity period of one hour. After the token expires, the user needs to re-authenticate to get a new token.   
    A possible solution would be to use a refresh token, which allows you to obtain a new access token without requiring the user to re-authenticate each time the token expires. 

    If you're still experiencing the issue after implementing the refresh token flow, or if the problem persists try login through another browser, please share the redirect URL you're using. 

    I hope this helps! Let me know if you have any further questions. 

    Best Regards. 
    Harshitha Eligeti. 

     

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.