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

Video/Blog article of how to have this package running? #130

Open
BinariusConsulting opened this issue Dec 6, 2024 · 4 comments
Open

Video/Blog article of how to have this package running? #130

BinariusConsulting opened this issue Dec 6, 2024 · 4 comments

Comments

@BinariusConsulting
Copy link

I am currently stuck at getting 403 error with my Application ID and Secret value. What are the permissions required by the Application before using its appID and secret to get the access Token?

@noticeeverything
Copy link
Contributor

Hey there! If you're authenticating at the application level, I think you'll need these permissions. If you're using user auth, you'll need a refresh token.
app-permissions

@noticeeverything
Copy link
Contributor

noticeeverything commented Dec 7, 2024

I you're using user auth, you should be able to get the required refresh token by following these instructions: https://learn.microsoft.com/en-us/partner-center/developer/secure-sample-application

Create a secure Partner Center application.

@BinariusConsulting
Copy link
Author

BinariusConsulting commented Dec 7, 2024 via email

@noticeeverything
Copy link
Contributor

Have you tried generating a refresh token and then instantiating the MicrosoftPartnerCenter with it?

const mspc = new MicrosoftPartnerCenter({
    partnerDomain: 'myPartnerDomain.onmicrosoft.com',
    authentication: {
        clientId: 'client-id',
        clientSecret: 'client-secret',
        refreshToken: 'refresh-token'
    }
}

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