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

CompactToken parsing failed with error code #45

Open
priyankatech2513 opened this issue Jul 19, 2022 · 1 comment
Open

CompactToken parsing failed with error code #45

priyankatech2513 opened this issue Jul 19, 2022 · 1 comment

Comments

@priyankatech2513
Copy link

unable to login getting below error please suggest solution
{"error": {"code": "InvalidAuthenticationToken", "innerError": {"client-request-id": "02be882d-a85d-4d05-87ef-03df8deeab26", "date": "2022-07-19T11:36:45", "request-id": "02be882d-a85d-4d05-87ef-03df8deeab26"}, "message": "CompactToken parsing failed with error code: 80049217"}}

@DeepakSharma04
Copy link

DeepakSharma04 commented Sep 8, 2022

Pass tenant ID --https://login.microsoftonline.com/

e.g.const CREDENTIAILS = {
authority:'https://login.microsoftonline.com/XXXXXXXXXXXXXXXXXX',
client_id: 'XXXXXXXXXXXXXXXX',
client_secret: 'XXXXXXXXXXXXXXX',
redirect_uri: 'XXXXXXXXXXXXXXXXXXXXXX',
scope: 'https://graph.microsoft.com/.default'
};

And change the lines in AzureInstance.js

constructor(credentials) {
this.authority = credentials.authority;
this.authorize_endpoint = '/oauth2/v2.0/authorize';
this.token_endpoint = '/oauth2/v2.0/token';
this.redirect_uri = credentials.redirect_uri;
this.client_id = credentials.client_id;
this.client_secret = credentials.client_secret;
this.scope = credentials.scope;
this.token = {};

    // function binding
    this.getConfig = this.getConfig.bind(this);
    this.setToken = this.setToken.bind(this);
    this.getToken = this.getToken.bind(this);
    this.getUserInfo = this.getUserInfo.bind(this);
}

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

2 participants