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
internal class TokenValidationHandler : DelegatingHandler | |
{ | |
// This function retrieves ACS token (in format of OAuth 2.0 Bearer Token type) from | |
// the Authorization header in the incoming HTTP request from the client. | |
private static bool TryRetrieveToken(HttpRequestMessage request, out string token) | |
{ | |
try | |
{ | |
token = null; | |
IEnumerable<string> authHeaders; |
NewerOlder