All Questions
Tagged with object-oriented authentication
27 questions
10
votes
2
answers
3k
views
Is my PHP login system following best practices? Is the code really OOP?
I'm learning about OOP and putting my knowledge into practice.
I created a login system in PHP, so I wish someone could tell me if I'm on the right track. I feel like I'm getting better at coding, but ...
4
votes
3
answers
271
views
User management OOP php class
I found a class that i coded for an old project about a year ago and i haven't really touched php in a while. Now i need to use similar functionality again i thought it would be the perfect time to ...
1
vote
1
answer
66
views
Python classes to grab HTTP response from website entities
I am trying to implement a parent WebContent class and child classes to grab HTTP responses from the actual website entities. There are highlevel codes below and I ...
1
vote
1
answer
76
views
PHP library that can use different authentication mechanisms
I am making a library which can use different auth mechanisms. I have abstracted the code within an interface:
...
2
votes
1
answer
114
views
PHP User management class
Here is my code for a class that is responsible for managing some common users task like registration, login and logout. It implements also a sub class that can be used to check the session of a ...
2
votes
2
answers
1k
views
PHP login/signup validation class
I am working on a blog with PHP, specially in order to practice OOP.
Since the blogging system will handle users, i thought that a Validation class would be a good idea in order to not repeat code ...
7
votes
1
answer
724
views
JWT Authentication Service
Recently I've built a service at my work to generate tokens with JWT (JSON Web Token) "protocol", I would like to show you the code and to get comments from you if that's good enough and if there are ...
4
votes
1
answer
25k
views
Basic object-oriented PHP login, logout, and registration scripts
I am new to OOP in general and have recently started trying to develop object-oriented PHP code instead of relying on a primarily procedural style, as this is a requirement for my studies. One part of ...
3
votes
2
answers
1k
views
User class, taking on login and registration capabilities
Based on the Single Responsibility Principle, I have been looking at my User class, trying to figure out how I can break out more functionality into separate classes.
But it seems like all the ...
4
votes
2
answers
2k
views
PHP OOP Login Script
I'm new to both PHP and OOP and would like some constructive feedback on a class I made.
I have a "main account" login system already setup and working; when the user logs in they're presented with a ...
1
vote
1
answer
511
views
Simple login and authentication app
For school I had to do a real simple login and authentication system on an Android app, and I'm wondering how my code can be optimised to reduce code duplication and how it can be made more object ...
6
votes
1
answer
71
views
Login validator class
I'm trying to learn more about object oriented programming and I have a few questions about the class below.
I'm working in Visual Basic.NET
My questions are
Is there a better place / way to show the ...
2
votes
2
answers
911
views
Sharepoint Authentication Helpers
I'm working on a rather large SharePoint project that's going to contain helper classes for a variety of item levels (sites, webs, lists, items, etc').
When writing code I'm expecting that the same ...
8
votes
2
answers
688
views
A PHP User System
This PHP User System was built with MySQLi and I also used Composer. I'm planning to improve this, and add more stuff and release it as a sort of a module for Composer.
User.php (Controller File in ...
2
votes
1
answer
139
views
PHP CSRF eliminator
There are three functions involved. The first Init is run before the content is parsed. The second is parseContent where the ...