Presentation is loading. Please wait.

Presentation is loading. Please wait.

Final Project Implementation of Basic Authentication.

Similar presentations


Presentation on theme: "Final Project Implementation of Basic Authentication."— Presentation transcript:

1 Final Project Implementation of Basic Authentication

2 Developers GirijaSujathaPremalatha

3 Definition of Authentication Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be Authentication is the process of determining whether someone or something is, in fact, who or what it is declared to be

4 Modules File Management and Handling the Database File Management and Handling the Database Edit Users Email and Programs Edit Users Email and Programs Change Password and Delete User Account from.htpasswd and Database Change Password and Delete User Account from.htpasswd and Database

5 Project Description Design and implement a new web module, which allows an admin to manage users - issuing them accounts, edit, and delete them, while providing the user the ability to change their password. Design and implement a new web module, which allows an admin to manage users - issuing them accounts, edit, and delete them, while providing the user the ability to change their password.

6 The admin chooses the staff's email from the database list and can multiple-select programs (from the database), from which they may belong to. The admin chooses the staff's email from the database list and can multiple-select programs (from the database), from which they may belong to.

7 Code for verifying username and password Code for verifying username and password if ( $userlist{$username} eq crypt($password,$userlist{$username})) if ( $userlist{$username} eq crypt($password,$userlist{$username})) { Print “Successfully Logged in”; Print “Successfully Logged in”; }

8 Code for saving new password in.htpasswd Code for saving new password in.htpasswd if ( ($userlist{$username} eq crypt($oldpassword,$userlist{$username}) ) { if ( ($userlist{$username} eq crypt($oldpassword,$userlist{$username}) ) { $userlist{$username} = crypt($newpassword,"giri"); $userlist{$username} = crypt($newpassword,"giri"); &save_passwd_to_file; &save_passwd_to_file; }&save_passwd_to_file foreach (keys(%userlist)) { print OUT "$_:$userlist{$_}\n"; print OUT "$_:$userlist{$_}\n"; }

9 Admin Page

10 User Page

11 Difficulties Faced Sending email to the recipient address Sending email to the recipient address Passing variable from one file to another file Passing variable from one file to another file Dealing with password encryption. Dealing with password encryption.

12 What we have Learnt Learned to use sql in perl cgi programs Learned to use sql in perl cgi programs Became familiar with Html and mysql Became familiar with Html and mysql Learned to pass variables from one file to another. Learned to pass variables from one file to another. Learned to use subroutines. Learned to use subroutines.

13 Admin Flow Chart Admin Create User Account Managing the files Edit and Delete User account

14 User Flow Chart User Change Password

15 Overview Files we used for this Project are as follows: Finalproject.cgi-creates mainpage for Admin Finalproject.cgi-creates mainpage for Admin http://perl.cs.ohlone.edu/~gen19/FinalPro ject.cgi http://perl.cs.ohlone.edu/~gen19/FinalPro ject.cgi http://perl.cs.ohlone.edu/~gen19/FinalPro ject.cgi http://perl.cs.ohlone.edu/~gen19/FinalPro ject.cgi

16 Create.cgi-It creates new user and saves the username and encrypted password in.htpasswd file.It will send the username and password to the user’s email. Create.cgi-It creates new user and saves the username and encrypted password in.htpasswd file.It will send the username and password to the user’s email. Password = welcome http://perl.cs.ohlone.edu/~gen19/create.cgi

17 login.cgi-It allows user to login after checking username and password. login.cgi-It allows user to login after checking username and password. http://perl.cs.ohlone.edu/~gen19/login.cgi http://perl.cs.ohlone.edu/~gen19/login.cgi http://perl.cs.ohlone.edu/~gen19/login.cgi changepass.cgi-It allows user to change the password. changepass.cgi-It allows user to change the password. http://perl.cs.ohlone.edu/~gen19/change pass.cgi http://perl.cs.ohlone.edu/~gen19/change pass.cgi http://perl.cs.ohlone.edu/~gen19/change pass.cgi http://perl.cs.ohlone.edu/~gen19/change pass.cgi

18 editemail.cgi-it gets valid username to edit their emails. editemail.cgi-it gets valid username to edit their emails. http://perl.cs.ohlone.edu/~gen19/editema il.cgi http://perl.cs.ohlone.edu/~gen19/editema il.cgi http://perl.cs.ohlone.edu/~gen19/editema il.cgi http://perl.cs.ohlone.edu/~gen19/editema il.cgi newemail.cgi-It gets the new email to be edited. newemail.cgi-It gets the new email to be edited. http://perl.cs.ohlone.edu/~gen19/newema il.cgi http://perl.cs.ohlone.edu/~gen19/newema il.cgi http://perl.cs.ohlone.edu/~gen19/newema il.cgi http://perl.cs.ohlone.edu/~gen19/newema il.cgi

19 updateemail.cgi-It updates new email in database. [Tablename:gen19_userinfo] updateemail.cgi-It updates new email in database. [Tablename:gen19_userinfo] http://perl.cs.ohlone.edu/~gen19/updatee mail.cgi http://perl.cs.ohlone.edu/~gen19/updatee mail.cgi http://perl.cs.ohlone.edu/~gen19/updatee mail.cgi http://perl.cs.ohlone.edu/~gen19/updatee mail.cgi editprogram.cgi-it gets valid username to edit their programs. editprogram.cgi-it gets valid username to edit their programs. http://perl.cs.ohlone.edu/~gen19/editprog ram.cgi http://perl.cs.ohlone.edu/~gen19/editprog ram.cgi http://perl.cs.ohlone.edu/~gen19/editprog ram.cgi http://perl.cs.ohlone.edu/~gen19/editprog ram.cgi

20 newprogram.cgi-It gets the new program to be edited. newprogram.cgi-It gets the new program to be edited. http://perl.cs.ohlone.edu/~gen19/newpro gram.cgi http://perl.cs.ohlone.edu/~gen19/newpro gram.cgi http://perl.cs.ohlone.edu/~gen19/newpro gram.cgi http://perl.cs.ohlone.edu/~gen19/newpro gram.cgi updateprogram.cgi-It updates new program in database. [Tablename:gen19_userinfo] updateprogram.cgi-It updates new program in database. [Tablename:gen19_userinfo] http://perl.cs.ohlone.edu/~gen19/updatep rogram.cgi http://perl.cs.ohlone.edu/~gen19/updatep rogram.cgi http://perl.cs.ohlone.edu/~gen19/updatep rogram.cgi http://perl.cs.ohlone.edu/~gen19/updatep rogram.cgi

21 delete.cgi-It deletes the record from database and.htpasswd file. delete.cgi-It deletes the record from database and.htpasswd file. http://perl.cs.ohlone.edu/~gen19/delete.c gi http://perl.cs.ohlone.edu/~gen19/delete.c gi http://perl.cs.ohlone.edu/~gen19/delete.c gi http://perl.cs.ohlone.edu/~gen19/delete.c gi

22 Thank You Many thanks to Prof Jon Degallier for helping us with our learning process. Many thanks to Prof Jon Degallier for helping us with our learning process. The Discussion Board is very useful to help each other. We really appreciate it and thanks to all. The Discussion Board is very useful to help each other. We really appreciate it and thanks to all.


Download ppt "Final Project Implementation of Basic Authentication."

Similar presentations


Ads by Google