LanceMcCarthy / MvpApi

An application for Microsoft MVPs to easily browse and upload contributions
MIT License
36 stars 10 forks source link

Windows 10 - App won't get past login #50

Closed wsmelton closed 5 years ago

wsmelton commented 6 years ago

Fresh install from Windows Store, opened the app and entered my email/password for my MVP profile but the app just continues to prompt: image

I'm not able to get past this prompt. Clicking no or yes return the same result, prompt just reappears. I went into app settings and reset the app, same result. Uninstall and reinstall, same result.

LanceMcCarthy commented 6 years ago

Thanks for reporting this. Let me build you an APPX with the latest bit today that you can side load.

Another reason for the issue is if the email address you use for portal is also an O365 account (or any AD FS), im rrying to find a solution for these use cases but it seems only the MVP API folks can fix it by allowing multitenent

wsmelton commented 6 years ago

I'm using an Outlook.com email address.

LanceMcCarthy commented 6 years ago

I've built you a custom release, follow these steps to install the app.

1 - Uninstall the current version 2 - Download this ZIP MVPCompaion_InternalBuild.zip 3 - Right click on the zip file, select "Properties", click the "unblock" checkbox and then OK 4 - Unzip the folder 5 - Right click on the ps1 file and select "run with Powershell"

This will open a command prompt asking you if it's okay to install this app. follow the prompts and it will complete installation.

6 - You'll find the app in your Start menu, go ahead and run it.

LanceMcCarthy commented 5 years ago

@wsmelton I published an update to the store, v1.6. Can you let me know if you still have the issue with that release?

wsmelton commented 5 years ago

The app now shows it is logged in as your profile: image

LanceMcCarthy commented 5 years ago

@wsmelton Ah, that's just fallback sample data in case the databinding fails.

Close the app and reopen it. Your access token should be refreshed and good to go from there.

wsmelton commented 5 years ago

Closing and reopening does not fix it and I do not get prompted to login anymore. I also receive this every time I open the app:

image

wsmelton commented 5 years ago

Trying to click on the login options both give the same decoding failed error.

LanceMcCarthy commented 5 years ago

The error message itself "Image Decoding Failed" is a bit wrong because of the fail fall through (I'm redesigning this as we speak). If you click "Send error and copy base 64", you'll get the actual error code form the API in your clipboard.

It most likely says something like "404 usr not found" or similar.

To erase the local state and start over, uninstall the app and reinstall. This will give the 'Local State' persistence a clean slate and force you to sign back in and get a new access token

wsmelton commented 5 years ago

Yeah it returns: { "statusCode": 404, "message": "Resource not found" }

wsmelton commented 5 years ago

Uninstall/reinstall has no effect. The error won't allow the login prompt to show up.

LanceMcCarthy commented 5 years ago

Thanks, I'm investigating this now.

What happens if you use the Logout/Login button on the profile page?

wsmelton commented 5 years ago

There isn't one... image

wsmelton commented 5 years ago

Truthfully I can't do much of anything, clicking around causes that decoding failure to show up and it just continues to reload.

Just to note I'm still on 1803 for Windows 10, the 1809 update has not hit my machine just yet.