Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
woloski
committed
Jul 8, 2012
1 parent
c625f0b
commit 984eb69
Showing
15 changed files
with
18,306 additions
and
79 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using System.Web; | ||
using System.Web.Util; | ||
using Microsoft.IdentityModel.Protocols.WSFederation; | ||
|
||
namespace SampleRP | ||
{ | ||
public class AllowTokenPostRequestValidator : RequestValidator | ||
{ | ||
protected override bool IsValidRequestString(HttpContext context, string value, | ||
RequestValidationSource requestValidationSource, | ||
string collectionKey, out int validationFailureIndex) | ||
{ | ||
validationFailureIndex = 0; | ||
|
||
if (requestValidationSource == RequestValidationSource.Form && | ||
collectionKey.Equals(WSFederationConstants.Parameters.Result, StringComparison.Ordinal)) | ||
{ | ||
SignInResponseMessage message = | ||
WSFederationMessage.CreateFromFormPost(context.Request) as SignInResponseMessage; | ||
|
||
if (message != null) | ||
{ | ||
return true; | ||
} | ||
} | ||
return base.IsValidRequestString(context, value, requestValidationSource, collectionKey, | ||
out validationFailureIndex); | ||
} | ||
} | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/** | ||
* GitHub theme customized | ||
* | ||
* @author Craig Campbell | ||
* @version 1.0.2 | ||
*/ | ||
pre { | ||
border: 1px solid #ccc; | ||
padding: 6px 10px; | ||
line-height: 19px; | ||
margin-bottom: 20px; | ||
} | ||
|
||
code { | ||
border: 1px solid #eaeaea; | ||
margin: 0px 2px; | ||
padding: 0px 5px; | ||
font-size: 12px; | ||
} | ||
|
||
pre code { | ||
border: 0px; | ||
padding: 0px; | ||
margin: 0px; | ||
-moz-border-radius: 0px; | ||
-webkit-border-radius: 0px; | ||
border-radius: 0px; | ||
} | ||
|
||
pre, code { | ||
font-family: 'Bitstream Vera Sans Mono', Consolas, Courier, monospace; | ||
color: #333; | ||
background: #f8f8f8; | ||
-moz-border-radius: 3px; | ||
-webkit-border-radius: 3px; | ||
border-radius: 3px; | ||
overflow-x: auto | ||
} | ||
|
||
pre, pre code { | ||
font-size: 13px; | ||
} | ||
|
||
pre .comment { | ||
color: #998; | ||
} | ||
|
||
pre .support { | ||
color: #0086B3; | ||
} | ||
|
||
pre .tag, pre .tag-name { | ||
color: navy; | ||
} | ||
|
||
pre .keyword, pre .css-property, pre .vendor-prefix, pre .sass, pre .class, pre .id, pre .css-value, pre .entity.function, pre .storage.function { | ||
font-weight: bold; | ||
} | ||
|
||
pre .css-property, pre .css-value, pre .vendor-prefix, pre .support.namespace { | ||
color: #333; | ||
} | ||
|
||
pre .constant.numeric, pre .keyword.unit, pre .hex-color { | ||
font-weight: normal; | ||
color: #099; | ||
} | ||
|
||
pre .entity.class { | ||
color: #458; | ||
} | ||
|
||
pre .entity.id, pre .entity.function { | ||
color: #900; | ||
} | ||
|
||
pre .attribute, pre .variable { | ||
color: teal; | ||
} | ||
|
||
pre .string, pre .support.value { | ||
font-weight: normal; | ||
color: #d14; | ||
} | ||
|
||
pre .regexp { | ||
color: #009926; | ||
} |
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 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 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
Oops, something went wrong.