msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

JWT token failed signature validation

Open Brijeshoo7 opened this issue 3 years ago • 2 comments

Hi,

when i try to run command connect-mggraph and login with my global admin account which has no MFA enabled it gives me below error.

image

Please share on thoughts on this and let me know if i am missing something in azure tenant to check.

Brijeshoo7 avatar Sep 16 '22 10:09 Brijeshoo7

image

Same thing happens when i try to run : Update-M365DSCAllowedGraphScopes -All -Type 'Update' -Environment 'Global'.

Brijeshoo7 avatar Sep 16 '22 11:09 Brijeshoo7

@Brijeshoo7, which environment/national cloud are you trying to sign in to? The error message can occur when you try to use different national cloud account to sign into the global environment/national cloud.

Please share the following details for us to help you:

  • The environment/cloud are you connecting to? See MS Graph supported clouds at https://docs.microsoft.com/en-us/graph/deployments#microsoft-graph-and-graph-explorer-service-root-endpoints.
  • The version of the imported module. Get-Module Microsoft.Graph.Authentication.
  • Steps taken during the sign in process. e.g., Did a browser/window pop-up? At what point in the authentication process does the error appear?

peombwa avatar Sep 22 '22 17:09 peombwa

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

ghost avatar Sep 26 '22 18:09 ghost

@peombwa thanks for your reply. I have tried with the .US domain user too if there is GCC issue as you mentioned but facing the same issue.

can you give me the proper steps to check everything one by one in tenant if I am missing out at some point.

thanks.

Brijeshoo7 avatar Sep 27 '22 06:09 Brijeshoo7

@peombwa thanks very much. based on the link you have provided i have found solution. closing this issue now.

Connect-MgGraph -Environment USGov

it was US gov tenant so needed to add this things i wasn't aware of.

Brijeshoo7 avatar Sep 28 '22 13:09 Brijeshoo7