Login Screen


Author
Message
Jithin Heric
Jithin Heric
StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)StrataFrame Beginner (3 reputation)
Group: Forum Members
Posts: 1, Visits: 1
Hi in the strataframe's demo package there is a application on role based security. Is it possible to set up a similar login screen using strataframe for a web based application.

Thanks,                                                                                                                                                             

Jithin

Trent Taylor
Trent Taylor
StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)StrataFrame Developer (8.5K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
The StrataFrame RBS can most definitely be used on the web. We don't have a template to create the login screen for you, but you can manually call the authentication methods on the Login class.



For example, I would accept the user name and password from a page, then call the SetLoggedInUser(...) method to authenticate and set the CurrentUser properties:



if(Login.SetLoggedInUser(MyUserName, MyPassword, MyDomain) == Login.LoginResult.Success)

{

//-- Move on to the next page as we are now authenticated

}

else

{

//-- Login failed...take appropriate action

}




or in VB



If Login.SetLoggedInUser(MyUserName, MyPassword, MyDomain) = Login.LoginResult.Success) Then

//-- Move on to the next page

Else

//-- Login failed

End If




Now the SecurityDialog class that comes with WinForms to create users, etc. is not available on the WebForms. This is something that you would have to create if you wanted to allow users to be added and permissions set on the website itself.



Hope that helps. Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search