2011-12-11 4 views
1

Je dois authentifier l'utilisateur avec authentification passeport tpe. pour cela j'ai mis la configuration suivante dans web.config.Authentification passeport

<identity userName="username" password="password" impersonate="true"/> 

<authentication mode="Passport"> 
      <passport redirectUrl="https://login.yahoo.com"/> 
     </authentication> 

Veuillez confirmer si cela est correct/complet?

Répondre

0

vous pouvez spécifier comme ce

<?xml version="1.0" encoding="utf-8" ?> 
<configuration> 
    <system.web> 
     <compilation defaultLanguage="c#" debug="true" /> 
     <authentication mode="Passport"> 
      <passport redirectUrl="login.aspx" /> 
     </authentication> 
     <authorization> 
      <allow users="*" /> <!-- Allow all users --> 
     </authorization> 
    </system.web> 
    <location path="attendees"> 
     <system.web> 
      <authorization> 
      <deny users="?" /> 
      </authorization> 
     </system.web> 
    </location> 
</configuration> 

je vous recommande pls de jeter un oeil à ce authentication using passport mode

Questions connexes