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.

Windows Authentication and JWT Bearer on ASP.Net Core Web API #1711

@fabricejumarie

Description

@fabricejumarie

Hello,

I try to use the both authentication scheme JwtBearerDefaults.AuthenticationScheme and Windows authentication. The user log in by calling an authentication controller which required Windows Authentication, the windows user's name is retrieved from http request and validated from database by using Identity framework. If the user is validated, a JWT is generated and send to the client and next I would like that the user navigation use only this JWT to access protected data.

So that IIS accepts incoming HTTP request with JWT , I enable Anonymous authentication in addition to Windows Authentication.

Now I would like to force Windows Authentication on authentication controller and use JWT bearer for all other controllers.

Does anyone can help me for that, I try so many thing but without success?

I commited my code here : https://github.com/fabricejumarie/Authentication_WebApiCore2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions