Hello, @KA,
Welcome to the Microsoft Q&A platform!
As you said, currently, accessing the public key distribution URL used to validate Exchange ID tokens returns an HTTP status code 401, which indeed raises concerns about the potential deprecation of these tokens.
About Question 1, according to the latest documentation, Microsoft plans to gradually phase out legacy Exchange Online tokens. This means that in the future, it may be permanently impossible to access these URLs to validate tokens.
About Question 2, please considering following the steps below.
- Use Microsoft Graph API: Microsoft recommends developers transition to using the Microsoft Graph API for authentication and token validation. Microsoft Graph provides more modern and secure authentication mechanisms.
- Update Applications: Ensure your applications use the latest authentication libraries and methods to comply with Microsoft’s latest security standards and guidelines.
- Pay attention to duration of support: Microsoft typically provides detailed timelines and transition periods to give developers ample time to migrate. It is recommended to regularly check Microsoft’s official documentation and announcements for the latest information and support timelines.
If the answer is helpful please click on ACCEPT ANSWER as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.
Thank you for your support and understanding.
Best Wishes,
Alex Zhang