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

Unable to get Graph Explorer API token #887

Closed
rafgk opened this issue Mar 11, 2021 · 6 comments · Fixed by #883
Closed

Unable to get Graph Explorer API token #887

rafgk opened this issue Mar 11, 2021 · 6 comments · Fixed by #883
Assignees

Comments

@rafgk
Copy link

rafgk commented Mar 11, 2021

Bug Report

Unable to get Graph Explorer API token

Description

Looking at the instructions on the node.js sample page I followed the instructions on how to get the API access token but the tokenPlease() function is not defined
[Description of the bug or feature]

Console Errors: tokenPlease() is not defined

Steps to Reproduce

  1. Go to: developer.microsoft.com/en-us/graph/graph-explorer
  2. Login
  3. Open dev console and type tokenPlease()
  4. tokenPlease is not defined

I tried in the latest versions of both Firefox and Chrome

AB#8548

@nikithauc
Copy link

@IIrafail Thanks for this question!

Once you login to the Graph Explorer site, you should be able to find the 'Access Token' tab option -

image

You can copy paste the access token from here.

Please let me know if you have more questions.

@nikithauc nikithauc self-assigned this Mar 11, 2021
@rafgk
Copy link
Author

rafgk commented Mar 11, 2021

@nikithauc Thank you for your reply. When I try it there is no access token, the copy button doesn't work either. Is there any setting I need to enable? Also when I click on the curly brackets button I get null as the access token.
grph2

grph

@MIchaelMainer MIchaelMainer transferred this issue from microsoftgraph/msgraph-sdk-javascript Mar 11, 2021
@MIchaelMainer
Copy link
Contributor

MIchaelMainer commented Mar 11, 2021

When a user signs in with a consumer account, the access token is not a JWT. We should still show the token but disable the link to jwt.ms as it can't decode the token. Consider the token opaque.

@IIrafail Can you confirm that you are using a consumer account to login?

@thewahome
Copy link
Collaborator

Is there a direct way to know that it is a consumer account?

@rafgk
Copy link
Author

rafgk commented Mar 12, 2021

@MIchaelMainer I am using a consumer account. How can I get the api token to use with my node.js application?

@thewahome
Copy link
Collaborator

This should be available in the next update as it is fixed by #883

@thewahome thewahome linked a pull request Mar 29, 2021 that will close this issue
@thewahome thewahome self-assigned this Mar 29, 2021
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

Successfully merging a pull request may close this issue.

4 participants