Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

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

Open
wsmelton opened this issue Jun 6, 2018 · 6 comments
Open

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

wsmelton opened this issue Jun 6, 2018 · 6 comments

Comments

@wsmelton
Copy link

wsmelton commented Jun 6, 2018

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
Copy link
Author

wsmelton commented Jun 6, 2018

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
Copy link
Author

wsmelton commented Jul 1, 2018

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
Copy link
Owner

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
Copy link

zjorz commented Apr 5, 2021

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,
[email protected], did not match to an ID for user lookup","StatusCode":400}
At line:1 char:1

  • Get-MVPContribution
  •   + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Get-MVPContribution], WebE
     xception
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Get-MVPContribution
    
    
    

the e-mail address [email protected] is wrong. it should be something else.

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

thanks!

@lazywinadmin
Copy link
Owner

@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...

  • can you share the commands you use to authenticate ?
  • can you provide your context (OS, PowerShell, version, module version)

@zjorz
Copy link

zjorz commented Apr 6, 2021

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants