Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4097722
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:12:36+00:00 2026-05-20T20:12:36+00:00

I’m writing my own authentification library with PHP. I want to implement not only

  • 0

I’m writing my own authentification library with PHP. I want to implement not only old-style Login/Pass authorization, but also OAuth and OpenID services (maybe others too) as drivers. These drivers will work with different data (tokens or simple array or any else), so I need to create separated tables for drivers + one main table for basic user information (ID, Screenname etc).

So, how do implement (or use existing) Auth libraries? I’m not asking for help with coding, just want to collect ideas, howtos and other best practices.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:12:37+00:00Added an answer on May 20, 2026 at 8:12 pm

    If I am understanding this correctly, you want to create a library that will support all of these at the same time? So User A can be logged in via OAuth and User B logged in via OpenID? And the library you are creating is to be used for providing simple “1 way calls”?

    I implemented something like that (for short url drivers) in a simple framework for XenForo. I did it by creating a generic class with a function called “shorten($url, $method)” and dynamically checked to make sure that the method’s driver existed in the specified directory (XenForo has Zend Framework’s AutoLoading, so we utilize that) and build function calls. I then pass necessary information on (only $url) and let the driver fetch the information.

    If you are storing all necessary information with the user, you could have an “extraData” database field with all necessary information for the specified “method” serialized or stored in a uniform manner that can be passed to the driver.

    My co-developer and I chose to abstract it enough that we would be able to release it and any other developer could easily add & install new drivers for the framework. I can provide sample code if you’d like, but it includes several XenForo specific items. Speaking of which, I like the way it worked, and may implement it in a non-XenForo specific method.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I want use html5's new tag to play a wav file (currently only supported
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
i want to parse a xhtml file and display in UITableView. what is the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.