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

Extract Token in other formats #7307

Closed
Bakura01 opened this issue Sep 11, 2024 · 2 comments
Closed

Extract Token in other formats #7307

Bakura01 opened this issue Sep 11, 2024 · 2 comments
Labels
answered Question has received "first qualified response" confidential-client Issues regarding ConfidentialClientApplications feature-unconfirmed msal-node Related to msal-node package question Customer is asking for a clarification, use case or information.

Comments

@Bakura01
Copy link

Core Library

MSAL Node (@azure/msal-node)

Wrapper Library

Not Applicable

Public or Confidential Client?

Confidential

Description

Feature:

Is it possible to get multiple token formats from the token cache to use the objects in other ways like saving, refreshing or fetching items from the Microsoft Graph API.
The current object from the cache is not compatible with other projects like python-o365 etc.

Example object:

{'token_type': 'Bearer', 
'scope': ['openid', 'profile', 'email', 'https://graph.microsoft.com/Mail.Read', 'https://graph.microsoft.com/Mail.Read.Shared', 'https://graph.microsoft.com/Mail.Send', 'https://graph.microsoft.com/User.Read'], 
'expires_in': 3676, 
'ext_expires_in': 3676, 
'access_token': '##', 
'refresh_token': '##',
'expires_at': ##} 

Source

External (Customer)

@Bakura01 Bakura01 added feature-unconfirmed question Customer is asking for a clarification, use case or information. labels Sep 11, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Sep 11, 2024
@github-actions github-actions bot added confidential-client Issues regarding ConfidentialClientApplications msal-node Related to msal-node package labels Sep 11, 2024
@sameerag
Copy link
Member

This is by design. It is a JSON blob which is universally parsable in various platforms.

cc @bgavrilMS in case you want to add anything else.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Author Feedback Awaiting response from issue author and removed Needs: Attention 👋 Awaiting response from the MSAL.js team labels Sep 19, 2024
@bgavrilMS bgavrilMS added the answered Question has received "first qualified response" label Sep 19, 2024
@bgavrilMS
Copy link
Member

We do not expect app developers to look in the cache. The format of the cache is irrelevant to the client, only where you store it is relevant. Not sure what scenario you are trying to achieve.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs: Author Feedback Awaiting response from issue author label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered Question has received "first qualified response" confidential-client Issues regarding ConfidentialClientApplications feature-unconfirmed msal-node Related to msal-node package question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

3 participants