Welcome Guest, Not a member yet? Register   Sign In
Danauth
#1

[eluser]axed[/eluser]
Hi,

I have worked on an authentication and authorization project (called Danauth) for a while now and just wanted to share it with you. I consider myself a beginner/novice in programming and one of the goals was mainly to learn more about this topic. I really don't know if I have considered all security aspects and so on, but it seems to work pretty good.

I would more than gladly appreciate feedback on what is good and what I can do better if you find the project interesting.

All the files and a user guide can be found here
https://sourceforge.net/projects/danauth...p/download

My main language is not English so excuse me if everything is not correctly written in the user guide. And please correct me if you find any strange sentences or so :-)

/Dan
#2

[eluser]Ephyzy[/eluser]
Sounds great. Has anyone tried this out?
#3

[eluser]wanyi[/eluser]
Although a few words of simple, summarize briefly, one expresses our bitter to still do not solution for several major problems. The lamp is community, like the direction of community, like the beams of the community. In the community, there will be a better tomorrow!
#4

[eluser]Ephyzy[/eluser]
I tested this but the login post fails silently. Please does anybody know how to find out what causes the failure? I am not sure how to capture the silent error. Undecided :red:

P.S> When I post a username with no password, it gives a validation error. With the correct or incorrect login details, it fails silently. Any ideas?

Code:
[removed]

    $(document).ready(function() {
    
        //Handles the button_login click
        $("#button_login").click(function() {

            var username = $("#username").val();
            var password = $("#password").val();

            //Post to nexus verify_login action.
            $.post("<?php echo site_url('danauth/verify_login'); ?>", { 'username': username, 'password': password },
            function(data){

                //Validation errors.
                if(data.result == "VAL_ERRORS")
                {    
                    $("#div_validation").show("fast");
                    $("#error_validation").html(data.error_validation);    
                }
                else
                {
                    if(data.access_granted == "false")
                    {
                        $("#div_validation").show("fast");
                        $("#error_validation").html("<br />Username and password don't match.");
                    }
                    else
                    {
                        location.reload();
                    }
                }        

            }, "json");
        });
        
    });

[removed]
#5

[eluser]Ephyzy[/eluser]
Arrrgh mea culpa. My database configuration had an error! Sad Its all good now.

I found it thanks to Fiddler HTTP Web Debugger. http://fiddler2.com/fiddler2/

Danauth is lovely. Thanks for the great work, axed!




Theme © iAndrew 2016 - Forum software by © MyBB