Frage

Ich habe einen WebHTTPBINDING-Dienst, der den grundlegenden HTTP-Authentifizierungsmodus verwendet, jedoch für einigen seltsamen Grund, warum er den Benutzernamen / Kennwort mit Windows-Konten überprüft, dachte ich, dass ich USERNAMEPASSwordValidationMode="Mitgliedschaftsprovider" angegeben habe.

Ich habe andere Beiträge gefunden, die dieses Problem auch melden, aber keine Antwort auf diese Situation wurde gegeben. generasacodicetagpre.

War es hilfreich?

Lösung

This configuration will not work. But there are workarounds to this issue:

  • Create Login() method and use authentication token, which you pass to every service method.
  • Use custom validation mode, and validate username\password by code, using Membership.ValidateUser()

Andere Tipps

Token passed login or a custom http authentication module.

Here is a link to a custom authentication module. http://custombasicauth.codeplex.com/

For token based, you could use an OAuth implementation.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top