HybridAuth | Integrates SocialConnect as SIMPLE authentication | Authentication library

 by   heiglandreas PHP Version: 3.0.0 License: No License

kandi X-RAY | HybridAuth Summary

kandi X-RAY | HybridAuth Summary

HybridAuth is a PHP library typically used in Security, Authentication, Nodejs, MongoDB applications. HybridAuth has no bugs, it has no vulnerabilities and it has low support. You can download it from GitHub.

Use the SocialConnect-Library to create an absolute lightweight Authentication-Layer for your ZendFramework3-App. You can login with all supported SocialNetwork-Logins. The network and a user-object holding id, name, mail and language will be stored in the session. If you already have SocialNetwork users in your application you can use these to authorize your users.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              HybridAuth has a low active ecosystem.
              It has 21 star(s) with 9 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 6 have been closed. On average issues are closed in 69 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of HybridAuth is 3.0.0

            kandi-Quality Quality

              HybridAuth has no bugs reported.

            kandi-Security Security

              HybridAuth has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              HybridAuth does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              HybridAuth releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed HybridAuth and discovered the below as its top functions. This is intended to give you an instant insight into HybridAuth implemented functionality, and help decide if they suit your requirements.
            • Creates a new UserInterface object .
            • Redirect user to backend
            • Handles redirect .
            • Get the Zend_Autoloader config
            • Get display name
            • on bootstrap
            • Returns true if the user is authenticated .
            • Returns array of backend names .
            • Set the service
            • Get the language
            Get all kandi verified functions for this library.

            HybridAuth Key Features

            No Key Features are available at this moment for HybridAuth.

            HybridAuth Examples and Code Snippets

            OrgHeiglHybridAuth,Installation,composer
            PHPdot img1Lines of Code : 4dot img1no licencesLicense : No License
            copy iconCopy
            # Require the hybridauth-module
            composer require org_heigl/hybridauth
            
            # Require the hybridauth-module
            composer require org_heigl/hybridauth:dev-feature/multipleProviders
              

            Community Discussions

            QUESTION

            Composer installation failed
            Asked 2021-May-21 at 16:29

            While running the Pimcore6.9 along with the symfony4.4 I had spotted some warnings:

            The MimetypeGuesser is depricated since symfony4.3 use MimeTypes instead.

            ...

            ANSWER

            Answered 2021-May-21 at 16:23

            Your composer.json already lists symfony/symfony as a required package. This contains symfony/mime - as long as you are using Symfony v4.3 or later. The MIME component did not exist before that.

            Source https://stackoverflow.com/questions/67640358

            QUESTION

            Deprecation of https://www.googleapis.com/plus/v1/people/me and how properly to migrate
            Asked 2020-May-11 at 15:30

            Recently Google plus is pending for shutdown, which also shutdown some Google Plus API including this one https://www.googleapis.com/plus/v1/people/me which our service is actively using.

            That above API was used in one of our legacy login library, which I can't even find the source for it. Hence I am now trying to patch it myself.

            Reading the migrate guide from Google, it doens't tell much in terms of how to change the url.

            Referencing some open source library like 1, 2. I have come up with the fix of replacing the url https://www.googleapis.com/plus/v1/people/me with https://www.googleapis.com/oauth2/v3/userinfo, which works but oauth2/v3/userinfo lacks documentation, so I am pretty worry that oauth2/v3/userinfo is not intended to be used like the above.

            So my question is:

            1. Is my solution: change https://www.googleapis.com/plus/v1/people/me with https://www.googleapis.com/oauth2/v3/userinfo an intended migration, if not then how can I migrate out of Google Plus API?
            2. Any documentation on https://www.googleapis.com/oauth2/v3/userinfo? The closest I can find is this, which seems more like an brief intro then a documentation.
            ...

            ANSWER

            Answered 2019-Feb-20 at 11:18

            The "/oauth2/v3/userinfo" call will not be deprecated on March 7th, 2019 as it is not part of the Google + API.

            If you look at the Google Developers Console, those calls are not registered as part of the Google + API.

            From Google email:

            If you are directly requesting the “plus.me” scope, any other Google+ OAuth scopes, or making any Google+ API calls, please ensure that you remove these requests from your project before March 7, 2019.

            Source https://stackoverflow.com/questions/54473043

            QUESTION

            Twitter API responds with "Your credentials do not allow access to this resource" while calling statuses/update.json
            Asked 2019-Sep-24 at 09:30

            I'm using Hybridauth 3 in my PHP app to make some periodical tweets on behalf of my account. The app has all possible permissions. I'm giving it all permissions when it asks for them on the first auth step. After that Twitter redirects me to the specified callback URL and there I'm getting a pair of access_token and access_token_secret. But when I'm trying to make a tweet using these tokens - it gives me:

            ...

            ANSWER

            Answered 2017-Sep-20 at 20:35

            It looks like you are using application authentication as opposed to user authentication. In order to post a tweet, you must authenticate as a user. Also, make sure your Twitter app has read/write privileges.

            Source https://stackoverflow.com/questions/46331180

            QUESTION

            What should I do with Hybrid_Endpoint::process() when migrating from 2.xx to 3.xx?
            Asked 2019-Aug-27 at 07:33

            I'm trying to migrate a project from HybridAuth 2.xx to 3.00, and I'm facing an issue with the following call to "Hybrid_Endpoint":

            ...

            ANSWER

            Answered 2019-Aug-27 at 07:33

            I managed to find the answer by trial and error. The short answer, it's not needed anymore - the "process" method is now integrated in the authenticate() method (which now serves two purposes: redirect and process), as described in the examples: https://github.com/hybridauth/hybridauth/tree/master/examples

            Source https://stackoverflow.com/questions/57624448

            QUESTION

            hybridauth 2.13.0 + Google authentication
            Asked 2019-Feb-02 at 13:22

            I've been using hybridauth for social login on my website (PHP 7.0) for quite few years.

            I now updated it to version 2.13.0 (latest stable at the moment)

            I did manage to configure and make work properly Facebook, Twitter, Linkedin.

            I'm stuck with Google. Here the config:

            ...

            ANSWER

            Answered 2019-Feb-02 at 13:22

            Ok, for anybody incurring in this issue, it's confirmed it's a server side setup.

            I contacted my hosting provider and they confirmed the problem is a false positive:

            They said:

            "Block was related to WAF mod_security server side which can generate false positive. We excluded the rule which caused that behaviour"

            Once done that all worked properly

            Source https://stackoverflow.com/questions/54489220

            QUESTION

            flynsarmy-sociallogin (Facebook api) in octoberCMS - Authentication failed! Facebook returned an invalid user id
            Asked 2019-Jan-01 at 07:09

            I'm using octoberCMS based on Laravel freamwork.

            I have installed social plugin, because I would like to have possibility for a sign in with Facebook account on my page.

            As instruction in plugin says that:

            1. Go to https://developers.facebook.com/ and click Create a New App in the Apps drop down.

            2. Enter your Display Name (usually your site name) along with any other required fields and click Create App

            3. Copy your App ID and App Secret into the fields below.

            4. On the Settings tab set the Valid OAuth redirect URIs to http://www.example.com/flynsarmy/sociallogin/Facebook

            So I have done each steps.

            But I got stuck.

            I got this when I'm trying to log into website with Facebook account in my log files(directly in back-end/settings/logs/event log :

            Authentication failed! Facebook returned an invalid user id. in public_html/plugins/flynsarmy/sociallogin/vendor/hybridauth/hybridauth/hybridauth/Hybrid/Auth.php on line 169

            and also when I tried to log into website with facebook account, I have redirected on my login page with #__=__ (it could be hint to solve a problem) in the end of url.

            For example if my login page is:

            ...

            ANSWER

            Answered 2017-Apr-27 at 08:05

            Facebook has recently changed their API and therefore the way how they return the id is now different.

            If you can manually update the hybridauth library in the plugin then it should solve the issue, otherwise you will need to report to plugin author and ask him to update hybridauth library in the plugin.

            Source https://stackoverflow.com/questions/43498192

            QUESTION

            Composer codeIgniter "nothing to install or update" even add library into composer JSON
            Asked 2018-Oct-23 at 09:34

            It's a long time i didn't use codeIgniter as my framework. I'm gonna install library using composer in codeIgniter,

            Library i want to install is hybridauth for social login with codeigniter.

            I have added "hybridauth/hybridauth": "~3.0" to my composer.json

            Here is my whole composer.json

            ...

            ANSWER

            Answered 2018-Oct-23 at 09:34

            You can edit

            "hybridauth/hybridauth": "~3.0"

            to

            "hybridauth/hybridauth": "*"

            then, run this command composer update.

            it solves my problem now.

            Source https://stackoverflow.com/questions/52945023

            QUESTION

            Error 404 using HybridAuth with Google
            Asked 2018-Aug-21 at 15:37

            I have a problem with an old site developed using YII 1.1.
            Everything worked until some time ago (the site is rarely used) but now login the Google login doesn't work.
            Specifically, I use the HybridAuth extension (guide https://www.yiiframework.com/wiki/459/integrating-hybridauth-directly-into-yii-withoutan-extension) but now it seems that the callback called up "socialLogin?hauth.done=Google" has a 404 not-found error.
            Nothing has changed on the website and obviously the controller exists. The only thing that is changed is the parent site (YII is in a subdomain) has been completely renewed (It's a Wordpress). What can I check?
            I did 3 really strange behavior:

            1. The first time, or if I have never given consent to use, the login works correctly. Next login failed (404).
            2. If i manually call the URL via browser (copy and paste URL) the callback a I remove the scope "https://www.googleapis.com/auth/userinfo.profile" I have no more 404 error.
            3. If I remove from URL only the word ".profile", for example https://www.googleapis.com/auth/userinfo.profil2, I have no 404 error.

            Locally the site work fine, without any problem at the login.

            What can I check on YII configuration or in wordpress configuration ?

            ...

            ANSWER

            Answered 2018-Aug-21 at 15:37

            I solve it.
            It was the .htaccess file of parent domain (Wordpress).
            I add this line:

            Source https://stackoverflow.com/questions/51949345

            QUESTION

            Having trouble setting custom endpoints for Hybridauth provider (WordPress)
            Asked 2018-Jul-07 at 09:13

            I'm trying to use Hybridauth (ver 3) to get a list of an authenticated user's WordPress blogs, using the https://public-api.wordpress.com/rest/v1.1/me/sites endpoint. Figured out that in order to do so, I need to change the default authorize_url endpoint for WordPress from https://public-api.wordpress.com/oauth2/authenticate to https://public-api.wordpress.com/oauth2/authorize.

            Hybridauth lets you change the endpoint, as in this example here: https://github.com/hybridauth/hybridauth/blob/master/examples/example_03.php

            Unfortunately, this results in the following error:

            Fatal error: Uncaught TypeError: Argument 1 passed to Hybridauth\Adapter\AbstractAdapter::setApiEndpoints() must be an instance of Hybridauth\Data\Collection, array given

            The code:

            ...

            ANSWER

            Answered 2018-Jul-07 at 09:13

            Endpoints should be an instance of Hybridauth\Data\Collection.

            You can pass the current endpoints array value to Hybridauth\Data\Collection constructor to create an instance and set this to the endpoints key in the config array.

            Source https://stackoverflow.com/questions/51174515

            QUESTION

            CakePHP 3: Session was already started with Hybridauth 3
            Asked 2018-May-07 at 18:19

            I have a LoginController where I do my usual login operation with combination of an email address and a password associated with the account.

            I have separated my Hybridauth related code into a separate controller named OauthController where I have all my Hybridauth magic and where my callback / endpoint resides.

            In the OauthController I check if user's email from the specified provider is already registered, and in either case I try to login that user with $this->Auth->setUser(object).

            Whenever, or whatever from the $this->Auth is called, I get a response stating:

            ...

            ANSWER

            Answered 2018-May-07 at 18:19

            Simply start the CakePHP session manually before using the Hybridauth library, so that it bails out at the session_id() check and picks up the existing session.

            For example in your controller:

            Source https://stackoverflow.com/questions/50218515

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install HybridAuth

            So you want it the hard way? Sure you don't want to give composer a try?. Then go figure it out. You might want to ask on the gitter channel or on IRC (freenode) but expect a reply along the line "use composer!". Note that you can either download the zip-files of the libraries or use the git submodule command to clone the libs into the appropriate folders. You should not simply use git clone <library> <target> as that might interfere with your local git-repo (when you use one). The submodule approach makes Lib-updates easier bun can end in a lot of headaches due to the caveats of the submodule-command! I can not provide you with support in that case! Alternatively you can fork the project at github.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/heiglandreas/HybridAuth.git

          • CLI

            gh repo clone heiglandreas/HybridAuth

          • sshUrl

            git@github.com:heiglandreas/HybridAuth.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Authentication Libraries

            supabase

            by supabase

            iosched

            by google

            monica

            by monicahq

            authelia

            by authelia

            hydra

            by ory

            Try Top Libraries by heiglandreas

            authLdap

            by heiglandreasPHP

            Org_Heigl_Hyphenator

            by heiglandreasPHP

            JUnitDiff

            by heiglandreasPHP

            Org_Heigl_Ghostscript

            by heiglandreasPHP

            holidayChecker

            by heiglandreasPHP