This is a migrated thread and some comments may be shown as answers.

.Net Membership login

9 Answers 121 Views
HTML5, CSS, JavaScript
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Todd Bannar
Top achievements
Rank 1
Todd Bannar asked on 23 Jan 2013, 07:49 PM
How can I setup a login page to validate against a ASP.NET Membership database?  Is it even possible?  If not, how do you implement any type of user authentication?

Thanks

9 Answers, 1 is accepted

Sort by
0
Chuck
Top achievements
Rank 1
answered on 01 Mar 2013, 03:41 PM
As far as Asp.Net authentication you would have to have a remote service stood up so that you could call in from your mobile app to validate the user. It could be done and it is pretty straight forward, but here is a sample of registering and authenticating a user against parse.

https://github.com/chuckcatron/Parse-Authentication.git
0
Patrick
Top achievements
Rank 1
answered on 21 Mar 2013, 03:02 AM
Gentlemen,

I have a similar question: How can I implement users login using their Google, Facebook, Yahoo, etc. accounts like Telerik login page?

Thanks
0
Steve
Telerik team
answered on 08 Apr 2013, 11:16 AM
Hi Patrick,

Take a look at the following forum thread. You might also want to review our Facebook sample that uses OAuth authorization.

Kind regards,
Steve
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Kendo UI Dojo.
0
Chuks
Top achievements
Rank 1
answered on 18 Apr 2013, 12:42 AM
Hi
Can someone guide me on how to validated a username and password in javascript using the Kendo Mobile UI with icenium, the authentication values are static within the javascript code e.g. username: foo and password: Hello 
0
David Silveria
Top achievements
Rank 1
answered on 18 Apr 2013, 08:02 AM
There is nothing specific to Kendo or Icenium in your question. Check stackoverflow or other threads on the net covering this topic:

0
Chuks
Top achievements
Rank 1
answered on 18 Apr 2013, 09:55 AM
Thanks for the tips
0
Alejandro
Top achievements
Rank 1
answered on 24 Apr 2014, 09:48 PM
I have the same question.

We are going to be using Appbuilder to have user logon against out existing asp.net membership. I know the process involves a web service that validates the user and the app itself that stores someway of the user been validated.
I looked at the code Chuck posted but all it does is call Parse.com. That is the part that we need to know how to implement.

Any one has any ideas?
0
Ayman
Top achievements
Rank 1
answered on 24 Apr 2015, 02:45 AM

You can use the same authentication method in ASP.NET  as well in  WEB API as back end for the Mobile application

you just create a controller/method  to mimic that  as follows

 

 public class AccountController : ApiController
    {

 [HttpPost]
        public HttpResponseMessage MobileLogin(Model.Login model)
        {
            if (Membership.ValidateUser(model.UserName, model.Password))
            {
                FormsAuthentication.RedirectFromLoginPage(model.UserName, model.RememberMe);
                return this.Request.CreateResponse(HttpStatusCode.OK);
            }

            return this.Request.CreateResponse(HttpStatusCode.Forbidden);
        }

 }

 

then in the global you will set the context in the Application_PostAuthenticateRequest

if you run a fiddler you will see the asp.net cookie

Tags
HTML5, CSS, JavaScript
Asked by
Todd Bannar
Top achievements
Rank 1
Answers by
Chuck
Top achievements
Rank 1
Patrick
Top achievements
Rank 1
Steve
Telerik team
Chuks
Top achievements
Rank 1
David Silveria
Top achievements
Rank 1
Alejandro
Top achievements
Rank 1
Iva Koevska
Telerik team
Ayman
Top achievements
Rank 1
Share this question
or