lazywinadmin / MVP

PowerShell Module to interact with the Microsoft MVP API
MIT License
45 stars 14 forks source link

Passing in ClientID does not show the proper email/account #18

Open wsmelton opened 6 years ago

wsmelton commented 6 years ago

Related to #17 I was debugging and found out the ClientID is being populated by the cache on my system. I go to the https://account.live.com/consent/Manage for my LiveID that is tied to my MVP account, pulled the ClientID and tried to pass that to the Set-MVPConfiguration and it does not correct the problem.

So even passing in the right ClientID does not cause the OAuth to show the right email/account.

wsmelton commented 6 years ago

There has to be some way of making that form prompt for the email instead of hitting the cache.

I went and just revoked the client id my cache is showing for the wrong account and it still picks it up for some reason. The only option can't be to always clearing the cache on the machine I'm using.

wsmelton commented 6 years ago

This is still an issue and I'm not seeing how to make it work properly. It is picking up my second account for Live ID because I use a different account to login to Azure. However, it is not offering a method to select which account I use like most APIs will.

lazywinadmin commented 6 years ago

Hi @wsmelton Thanks for reporting. I'll check how I can show multiple accounts. The HTML page showed in the window is provided by Microsoft Authentication, so not sure it is possible.

The team in charge of the API is hard to reach unfortunately 😞

zjorz commented 3 years ago

Hi,

Last year I was able to update my MVP profile using the MVP module. This year was different. I only got errors and had to do everything manually ;-(. One of those errors being:

Get-MVPContribution Get-MVPContribution : {"Message":"Not able to find user","MessageDetail":"The e-mail address given, xxxx@live.com, did not match to an ID for user lookup","StatusCode":400} At line:1 char:1

the e-mail address xxxx@live.com is wrong. it should be something else.

Is there already a solution for this or at least a workaround?

thanks!

lazywinadmin commented 3 years ago

@zjorz I'm not able to reproduce unfortunately, @wsmelton seems to have the same issue. Unfortunately the MVP API team has not been responsive so far...

zjorz commented 3 years ago

Hi,

Sure I can tell you what I do AND what I experience....

when executing: Set-MVPConfiguration -SubscriptionKey $SubscriptionKey the authn window pops up and disappears immediately without allowing me to enter anything. In the past I was able to provide the creds to authn

my MVP profile is connected to Microsoft account: msft1

Get-MVPProfile -ID xxxxx works correctly and displays the correct info

Get-MVPContribution gives an error and mentions an incorrect mail address. The e-mail address listed is a microsoft account msft2 one that I have configured in Office outlook

I'm wondering WHY the authn window pops up and goes away suddently. It looks as if it is using some cache or the credentials or something like that

OS: Windows 10 Enterprise 20H2 19042.870 PowerShell: 5.1.19041. 868 Module: 0.0.4