79640495

Date: 2025-05-27 12:44:02
Score: 0.5
Natty:
Report link

The spring-cloud-azure-starter-active-directory library is mainly used for things like logging in users with Azure AD, Access other resources like Microsoft Graph or Azure services from a resource server or securing REST APIs. If you want to get information about your app’s client secret like when it expires, you need to use the Microsoft Graph API. But it doesn't let you retrieve the application's own client secret metadata like expiry date.

to retrieve client secret expiry data, you can call REST API https://graph.microsoft.com/v1.0/applications/passwordCredentials

enter image description here

POST https://login.microsoftonline.com/TenantID/oauth2/v2.0/token

client_id: ClientID

client_secret: Secret

scope: https://graph.microsoft.com/.default

grant_type:client_credentials

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Deepthi R