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

Improve error message for when AuthenticationScheme is not recognized #466

@XplMarcel

Description

@XplMarcel

If AutomaticAuthentication is disabled through:
services.ConfigureCookieAuthentication(c => c.AutomaticAuthentication = false);
requests to controllers with an Authorize attribute give a 500 Internal Server Error with the following error:

System.InvalidOperationException
The following authentication scheme was not accepted:

There is no authentication scheme at all.
It can be reproduced using the default asp.net 5 WebApplication template (with individual accounts).
Just browse directly to http://localhost:{port}/Manage

Any ideas ?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions