<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sts.radiusworks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=UserContextHash</id>
	<title>UserContextHash - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sts.radiusworks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=UserContextHash"/>
	<link rel="alternate" type="text/html" href="https://sts.radiusworks.com/wiki/index.php?title=UserContextHash&amp;action=history"/>
	<updated>2026-11-15T18:13:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://sts.radiusworks.com/wiki/index.php?title=UserContextHash&amp;diff=49&amp;oldid=prev</id>
		<title>Theluis-admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://sts.radiusworks.com/wiki/index.php?title=UserContextHash&amp;diff=49&amp;oldid=prev"/>
		<updated>2026-10-19T14:55:46Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:55, 19 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key oceansp3_stswiki43:diff:1.41:old-48:rev-49 --&gt;
&lt;/table&gt;</summary>
		<author><name>Theluis-admin</name></author>
	</entry>
	<entry>
		<id>https://sts.radiusworks.com/wiki/index.php?title=UserContextHash&amp;diff=48&amp;oldid=prev</id>
		<title>99.244.72.184: Created page with &quot; The UserContextHash is used to validate the identity of a user or a source system in order to provide STS with secure validation.  It’s a SHA256 hash that is generated in t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://sts.radiusworks.com/wiki/index.php?title=UserContextHash&amp;diff=48&amp;oldid=prev"/>
		<updated>2020-01-15T14:26:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; The UserContextHash is used to validate the identity of a user or a source system in order to provide STS with secure validation.  It’s a SHA256 hash that is generated in t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
The UserContextHash is used to validate the identity of a user or a source system in order to provide STS with secure validation.&lt;br /&gt;
&lt;br /&gt;
It’s a SHA256 hash that is generated in the following manner by concatenating three strings:&lt;br /&gt;
&lt;br /&gt;
Hash = UserContextTimeDate + UserContextID + secret key&lt;br /&gt;
&lt;br /&gt;
The secret key being a value that is specific for the user (stored in a directory) or specific to the STS (defined in the web.config).&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
private bool ValidateHash(string strUsername, string strTimeDate, string strSecret, string strHash)&lt;br /&gt;
&lt;br /&gt;
{ // deal with base64 encoded hashes -&amp;gt; this is what we expect from the HIS submissions&lt;br /&gt;
&lt;br /&gt;
// byte array conversions add &amp;quot;-&amp;quot; to the string&lt;br /&gt;
&lt;br /&gt;
strHash = strHash.Replace(&amp;quot;-&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
strHash = strHash.Replace(&amp;quot; &amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
string compareHash = generate_sha256hash(strTimeDate + strUsername + strSecret);&lt;br /&gt;
&lt;br /&gt;
compareHash = compareHash.Replace(&amp;quot;-&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
strHash = strHash.Replace(&amp;quot;-&amp;quot;, &amp;quot;&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
if (strHash.ToLower() == compareHash.ToLower())&lt;br /&gt;
&lt;br /&gt;
{ Log(&amp;quot;Hash value confirmed for user &amp;quot; + strUsername + &amp;quot;.&amp;quot;, Log.LogLevel.Info);&lt;br /&gt;
&lt;br /&gt;
return true; }&lt;br /&gt;
&lt;br /&gt;
return false; }&lt;/div&gt;</summary>
		<author><name>99.244.72.184</name></author>
	</entry>
</feed>