Unable to login via SSO while using WebView

Stefan Gavrilas 101 Reputation points
2020-01-10T16:52:07.393+00:00

Hi there.
I am attempting to login to a website using SSO (let's say https://account.box.com/login) using my Microsoft account. Using a plain WebView, v1803.

However, I receive the following error : "AADSTS900561: The endpoint only accepts POST requests. Received a GET request" (please see below screenshot for more details).

alt text

Edit : After investigating a little, I've noticed that when logging in to Microsoft, it does a few requests (3 or 4 POSTs) and each response tries to set cookies - could it be that the cookies cannot be set?

Would you be able to advise?

Thank you kindly.

Universal Windows Platform (UWP)
0 comments No comments
{count} vote

Accepted answer
  1. Stefan Gavrilas 101 Reputation points
    2020-01-13T11:27:40.89+00:00

    Hi Roy,
    Thank you, we identified the issue as being a view-model property triggering re-navigation to the same URL. We have fixed the issue.
    Thank you for your answer and putting us on the right track.
    PS : I was referring to target version 1803.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,551 Reputation points Microsoft Vendor
    2020-01-13T01:48:26.667+00:00

    Hello,

    Welcome to Microsoft Q&A!

    I made a sample to test the behavior you said. Here is the result:
    alt text
    From the image, you could see that the login function works correctly in my test. All the code is in the image. The target version is Build 1803 and the current OS version is 1903.

    When you said v1803, what do you mean? Target version or the OS version?

    Have you tried to sign in the website using Edge? Will it gave the same issue?

    0 comments No comments