This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.web> | |
<authorization> | |
<deny users="?" /> | |
</authorization> | |
... | |
</system.web> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomerController : Controller | |
{ | |
[Authorize] | |
public ActionResult Index() | |
{ | |
return View(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<microsoft.identityModel> | |
<service> | |
<audienceUris> | |
<add value="http://localhost:5100/" /> | |
</audienceUris> | |
<federatedAuthentication> | |
<wsFederation passiveRedirectEnabled="true" issuer="https://....accesscontrol.windows.net/v2/wsfederation" realm="http://localhost:5100" requireHttps="false" /> | |
<cookieHandler requireSsl="false" /> | |
</federatedAuthentication> | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MvcApplication : System.Web.HttpApplication | |
{ | |
... | |
private void WSFederationAuthenticationModule_RedirectingToIdentityProvider(object sender, RedirectingToIdentityProviderEventArgs e) | |
{ | |
// Get the request url. | |
var request = HttpContext.Current.Request; | |
var requestUrl = request.Url; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<audienceUris> | |
<add value="https://localhost:5100/" /> | |
<add value="https://something.cloudapp.net" /> | |
<add value="https://something.com" /> | |
</audienceUris> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<microsoft.identityModel> | |
<service> | |
... | |
<serviceCertificate> | |
<certificateReference x509FindType="FindByThumbprint" | |
findValue="0FD1AC13BB1F1B19997DAD5413EA138AC47471F0" /> | |
</serviceCertificate> | |
</service> | |
</microsoft.identityModel> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected void Application_Start() | |
{ | |
... | |
FederatedAuthentication.ServiceConfigurationCreated += OnServiceConfigurationCreated; | |
} | |
private void OnServiceConfigurationCreated(object sender, ServiceConfigurationCreatedEventArgs e) | |
{ | |
var sessionTransforms = new List<CookieTransform>(new CookieTransform[] | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Startup\logmein.msi /quiet USERPASSWORD=myLogMeInPassword USERVERIFYPWD=myLogMeInPassword [email protected] USERWEBPASSWORD=myLogMeInPassword LicenseType=pro | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceDefinition name="MyRole" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition"> | |
<WebRole name="WebRole" vmsize="ExtraSmall"> | |
... | |
<Startup> | |
<Task commandLine="Startup\LogMeIn.cmd" executionContext="elevated" taskType="simple" /> | |
</Startup> | |
</WebRole> | |
</ServiceDefinition> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
schemas.xmlsoap.org/ws/2005/05/identity/claims/name | |
schemas.microsoft.com/ws/2008/06/identity/claims/role | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/surname | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/privatepersonalidentifier | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/streetaddress | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/locality | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/postalcode | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/gender | |
schemas.xmlsoap.org/ws/2005/05/identity/claims/dateofbirth |