Forum Discussion

dhaeseleermatthias's avatar
dhaeseleermatthias
Copper Contributor
Jan 06, 2020

Send an interactive authorization request for this user and resource.

Hi,

 

Trying to get an access token for an app registration using aadTokenProvider and getting this error.

Consented the registration multiple times in Azure itself and through the consent screen.

Keep getting this error:

 

 

Any help?

 

Code:

 

 

    this.props.context.aadTokenProviderFactory.getTokenProvider().then((tokenProvider) => {
      return tokenProvider.getToken('XXXXXXXX');
    }).then((token: string) => {
      alert(token);
    }).catch(err => {
      console.log(err);
    });

 

Resources