﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum / StrataFrame Application Framework / Role Based Security  / 1st step in role based security / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>forum@strataframe.net</webMaster><lastBuildDate>Tue, 02 Dec 2008 16:49:32 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>It probably won't make it into the next update, but we can add it to the "requested samples" list.</description><pubDate>Thu, 25 Jan 2007 17:39:59 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>For those of us that are very new to .net, could you add a web site example with security with your next release?&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Thu, 25 Jan 2007 11:12:18 GMT</pubDate><dc:creator>Hugo R. Figueroa</dc:creator></item><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>Since the key and IV are integral to the security of the application, we don't default those values, so it's "by design," as Microsoft would say :)</description><pubDate>Wed, 24 Jan 2007 13:23:47 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;If user does not specify any value for the "Security Key:", &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;Should the decrypt &lt;SPAN style="mso-spacerun: yes"&gt; &lt;/SPAN&gt;take a default value “” for the seed?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 8pt; COLOR: #1f5080; FONT-FAMILY: Verdana"&gt;Anyway, it does not matter now.&lt;/SPAN&gt;</description><pubDate>Wed, 24 Jan 2007 10:10:18 GMT</pubDate><dc:creator>yh</dc:creator></item><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>No, the us_Data field is encrypted with 3DES and uses a 24-byte key and an 8-byte initialization vector for the 3DES algorithm.  Rather than hard-coding the key within SF (so all SF developers would have to use the same key), we allow the key to be specified by the developer.  Within the Role-Based Security Editor, if you open the project properties, you will notice the "User Data Encryption" box that specifies the "Security Key:".  This value is used as the seed for the key and IV that are used by the 3DES to encrypt the data when you create or modify a user.  You then have to specify the value to tell your application how to decrypt the us_Data field for your users within the database.</description><pubDate>Wed, 24 Jan 2007 09:54:38 GMT</pubDate><dc:creator>Ben Chase</dc:creator></item><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>Is this kind of a bug?</description><pubDate>Wed, 24 Jan 2007 09:48:15 GMT</pubDate><dc:creator>yh</dc:creator></item><item><title>RE: 1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>Answer is here:&lt;/P&gt;&lt;P&gt;Add the following line to the global.asax. &lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;SecurityBasics.SetSecurityKeyAndVectorForUserAuthentication(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;""&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Wed, 24 Jan 2007 09:46:33 GMT</pubDate><dc:creator>yh</dc:creator></item><item><title>1st step in role based security</title><link>http://forum.strataframe.net/Topic6140-21-1.aspx</link><description>&lt;FONT face=Arial color=navy size=2&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;I am trying to make the most simple case (role based security) work.&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="MARGIN-TOP: 0in" type=disc&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;one database strataFrame (everybody has this database when downloading strataframe), &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Create one web site, then using the ‘Security Editor’ create one 1 record for this website: username=somebody , us_data=Test123&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt; &lt;/FONT&gt;&lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;In the global.asax, I specify the connection string to the database&lt;/SPAN&gt;&lt;FONT face="Times New Roman" size=3&gt;: &lt;/FONT&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;strataFrame&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI class=MsoNormal style="MARGIN: 0in 0in 0pt; COLOR: navy; mso-list: l0 level1 lfo1; tab-stops: list .5in"&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;Then in the default.aspx.vb, I use the following 3 lines code&lt;/SPAN&gt;&lt;FONT size=3&gt;&lt;FONT face="Times New Roman"&gt; &lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;            Dim loUserInfo As New MicroFour.StrataFrame.Security.BusinessObjects.SFSUsersBO    &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;             Dim loResult As MicroFour.StrataFrame.Security.Login.LoginResult      &lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;             loResult = MicroFour.StrataFrame.Security.Login.AuthenticateUser("somebody ", " Test123", "nbs", loUserInfo)&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;Basically, the above is the whole test web site&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;And the loResult returns ‘failure’&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P class=MsoNormal&gt;&lt;/SPAN&gt;&lt;/FONT&gt;</description><pubDate>Wed, 24 Jan 2007 09:04:04 GMT</pubDate><dc:creator>yh</dc:creator></item></channel></rss>