- download the dependencies https://dl.dropbox.com/u/21665105/createcert.zip
- Run
createcert.cmd mycert mypassword
- You will be promted to enter the same password 5 times
This file contains 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
namespace Southworks.WindowsAzure | |
{ | |
using System; | |
using System.Web.Caching; | |
/// <summary> | |
/// Represents a cache dependency that uses Windows Azure queues to detect if an item in cache has changed | |
/// </summary> | |
/// <remarks>Sending a message a certain queue (specified using the <see cref="CloudQueueCacheDependencyMonitor" />) will invalidate the cache item </remarks> | |
/// <example> |
This file contains 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
## usage | |
## Download gmail-backup from www.gmail-backup.com and put it under "tools" folder relative to the script | |
## The idea is to download emails in small batches to avoid network issues and make a re-start easier. It also helps to avoid huge folders | |
## INPUT: the storage folder, amount of days to make the cut, start date, end date, credentials | |
## EXAMPLE: | |
## new-backup "d:\mail" 30 (get-date -year 2004 -month 01 -day 01) (get-date -y 2006 -month 01 -day 01) "youremail" "yourpwd" | |
function log($msg) { | |
$msg = (get-date).ToString("yyyyMMdd hh:mm:ss") + " $msg" | |
add-content log.txt $msg |
This file contains 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
namespace YourWebApp.Controllers | |
{ | |
using System; | |
using System.Text; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using System.Web.Security; | |
using Microsoft.IdentityModel.Protocols.WSFederation; | |
using Microsoft.IdentityModel.Web; | |
using System.Net; |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.ApplicationServer.Http; | |
using System.ServiceModel; | |
using System.Net.Http; | |
using System.ServiceModel.Web; | |
using System.Net.Http.Headers; | |
using WebApiContrib.Formatters.JsonNet; |
This file contains 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
This would be the console output | |
Claims for: https://myadfs/ (Correlation: 84b46102-3ed2-4ff2-88ac-eace0709667c) | |
http://schemas.microsoft.com/ws/2008/06/identity/claims/organization : myadfs | |
http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationinstant : 2012-04-12T21:15:32.410Z | |
http://schemas.microsoft.com/ws/2008/06/identity/claims/authenticationmethod : http://schemas.microsoft.com/ws/20 | |
enticationmethod/windows | |
http://schemas.microsoft.com/ws/2008/06/identity/claims/primarygroupsid : S-1-5-21-1409732942-2814574796-20323036 | |
http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid : S-1-5-21-1409732942-2814574796-203230364-513 | |
http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid : S-1-1-0 |
This file contains 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
Task.Factory.StartNew((state) => | |
{ | |
try | |
{ | |
// use http://nuget.org/packages/TransientFaultHandling.Core | |
// the defaultfixed strategy retries 10 times every 1 second | |
RetryPolicy.DefaultFixed.ExecuteAction(() => | |
{ | |
// do something that might throw an exception like calling an http endpoint | |
}); |
This file contains 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; | |
} | |
void OnServiceConfigurationCreated(object sender, | |
ServiceConfigurationCreatedEventArgs e) | |
{ | |
List<CookieTransform> sessionTransforms = |
This file contains 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
remote: D:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1 | |
835,9): error MSB3091: Task failed because "resgen.exe" was not found, or the co | |
rrect Microsoft Windows SDK is not installed. The task is looking for "resgen.ex | |
e" in the "bin" subdirectory beneath the location specified in the InstallationF | |
older value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft | |
SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the fol | |
lowing: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. | |
3) Manually set the above registry key to the correct location. 4) Pass the cor | |
rect location into the "ToolPath" parameter of the task. [C:\DWASFiles\Sites\aut | |
hbridge\VirtualDirectory0\site\repository\src\ClaimsPolicyEngine\ClaimsPolicyEng |
This file contains 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
https://{identityprovider-url}? | |
wa=wsignin1.0 -- signin verb. This is fixed. | |
wtrealm={your-application-identifier} -- logical identifier of your application. | |
wctx={context-information} -- [optional] contextual information that you want to keep around (e.g.: wctx=ru=/home/some-deep-link this would the original url the user was navigating to) | |
whr={identity-provider-identifier} -- [optional] hint the idp to use a specific identity provider (e.g.: whr=urn:Google) |
OlderNewer