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

Generating RefreshToken for Exchange online fails #186

Closed
KelvinTegelaar opened this issue Nov 11, 2019 · 2 comments
Closed

Generating RefreshToken for Exchange online fails #186

KelvinTegelaar opened this issue Nov 11, 2019 · 2 comments

Comments

@KelvinTegelaar
Copy link

When using the documentation at https://docs.microsoft.com/en-us/powershell/partnercenter/multi-factor-auth?view=partnercenterps-2.0#exchange-online-powershell%C2%A0

Generating a refresh token for Delegated Exchange administration fails.

Code executed:
$token = New-PartnerAccessToken -ApplicationId 'a0c73c16-a7e3-4564-9a95-2bdf47383716' -Scopes 'https://outlook.office365.com/.default' -Tenant 'MYTenantID' -UseDeviceAuthentication

Error:


new-PartnerAccessToken : Object reference not set to an instance of an object.
At line:1 char:10
+ $token = New-PartnerAccessToken -ApplicationId 'a0c73c16-a7e3-4564-9a ...
+          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [New-PartnerAccessToken], NullReferenceException
    + FullyQualifiedErrorId : System.NullReferenceException,Microsoft.Store.PartnerCenter.PowerShell.Commands.NewPartnerAccessToken
@KelvinTegelaar
Copy link
Author

When using the "old method" of authentication we get an error that the reply URL is incorrect, which is expected behaviour.

@ghost
Copy link

ghost commented Nov 11, 2019

@KelvinTegelaar version 2.0.1911.3 has just been released and included a solution for this issue. Please update to the latest version and let us know if you have any further issues.

@ghost ghost closed this as completed Nov 11, 2019
This issue was closed.
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

1 participant