Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Microsoft account is experiencing technical problems. Please try again later. #827

Closed
brian-ding opened this issue May 20, 2016 · 12 comments

Comments

@Tratcher
Copy link
Member

Go to https://apps.dev.microsoft.com/#/appList and check the Redirect Uris registered for your application. You should have one like this for local testing: https://localhost:44318/signin-microsoft

@brian-ding
Copy link
Author

@Tratcher Thanks for you answer, but i have tried this "/signin-microsoft" , just like my second reference link says, not working though.

i am wondering, since the url of error page says "error_description = the provided value for the input parameter 'redirect_url" is not valid. the expected value is 'https://login.live.com/oauth20_desktop.srf' or a URL which matches the redirect URI registedred for this client application, should i somehomw register this redirect url, like 'https://mywebiste.azurewebsites.net/signin-microsoft' in the code?

@Tratcher
Copy link
Member

I think you're running into this:
aspnet/IISIntegration#140 (comment)

@brian-ding
Copy link
Author

@Tratcher i tried again with redirect url http://{domain}/sign-microsoft. it works locally with http://localhost:500, but once i deploy to azure, it failed with a different error.
which says:
Error.
An error occurred while processing your request.
Development Mode
Swapping to Development environment will display more detailed information about the error that occurred.

Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application.

@brian-ding
Copy link
Author

@Tratcher Ok, i debug into the process, and it shows
error_description":"AADSTS90019: No tenant-identifying information found in either the request or implied by any provided credentials. Any comments please?

@Eilon
Copy link
Member

Eilon commented May 26, 2016

Can you confirm that you have a redirect URI set up properly in the Microsoft Account configuration?

Or this might be an issue related to switching between HTTP and HTTPS, in which case try using the temporary workaround mentioned here: aspnet/IISIntegration#140 (comment).

@brian-ding
Copy link
Author

brian-ding commented May 27, 2016

@Eilon you mean adding these code in ConfigureServices? Still not able to login with @outlook.com microsoft account
image

image

@Tratcher
Copy link
Member

Tratcher commented Jun 6, 2016

Possibly related: #866 (comment)

@ghost
Copy link

ghost commented Jun 6, 2016

Microsoft account is experiencing technical problems

I had exactly the same problem when I forgot add /signin-microsoft in registred URL on my app settings... but after that everything works well.

However I'm using only localhost in development and my own server/domain in production - I have no test this on Azure.


@brian-ding wrote:

i tried again with redirect url http://{domain}/sign-microsoft

maybe problem is with http - as far I know it should be https ?

About your exception - I had very similar exception when I use old MS App... Creating new app on https://apps.dev.microsoft.com following https://azure.microsoft.com/en-us/documentation/articles/active-directory-v2-app-registration/ is/was solution in my case.

@brian-ding
Copy link
Author

@lukaszdev thank you for your reply, I believe the reason is as Tratcher replied, but I have no idea how to make my web redirect to https:// when users log in, is there any chance that you may know how to do that?

thank you

@Tratcher
Copy link
Member

Tratcher commented Jun 7, 2016

@brian-ding did you apply this Azure workaround? aspnet/IISIntegration#140 (comment)

@ghost
Copy link

ghost commented Jun 8, 2016

The first, please follow the instructions form @Tratcher.


However answering your question... It's depend.

If you want set up https for all site you can enforcing SSL in your Startup.cs file:

public void ConfigureServices(IServiceCollection services)
{
    services.Configure<MvcOptions>(options =>
    {
       options.Filters.Add(new RequireHttpsAttribute());
    });
}

Of course you need to have domain + SSL certificate.

Then just change website address from http to https - you can do this directly in App settings on Azure portal or in deploy configuration (if you are deploying form VS).

It works well for me on RC1 but - like I said - I don't use Azure now, so I can't confirm if this still working with RC2.


For local use Visual Studio will create temporary SSL certificate for your local IIS, when you configure project to run with SSL.

Here is example from my MVC Core RC2 project (this is configuration in properties tab):
ssl


Also I'm not sure how to set `https` / `ssl` only for external authentication purpose and not for all site - I have never try that way ;)

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

No branches or pull requests

3 participants