Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access token retrieval in App service #2

Open
nitinprakash96 opened this issue Jun 20, 2024 · 0 comments
Open

Access token retrieval in App service #2

nitinprakash96 opened this issue Jun 20, 2024 · 0 comments

Comments

@nitinprakash96
Copy link
Member

App service provides two environment variables its instance for fetching access tokens:

  1. IDENTITY_HEADER - authentication code representing the service on the current node
  2. IDENTITY_ENDPOINT - local endpoint corresponding to service's managed identity

These two can then be used to fetch an access token. Note that this is particular to App service and will not work for standalone VM instances. At the moment withManagedIdentity will throw an error if you try fetching access token in an app service.

For more, see https://learn.microsoft.com/en-us/azure/service-fabric/how-to-managed-identity-service-fabric-app-code#acquiring-an-access-token-using-rest-api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant