You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
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?
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