Download the PHP package users-au/socialite-provider without Composer

On this page you can find all versions of the php package users-au/socialite-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package socialite-provider

Users.au OAuth2 Provider for Laravel Socialite

Latest Version on Packagist Total Downloads Tests PHP Version Require License

A Laravel Socialite OAuth2 provider for Users.au authentication service. This package allows you to easily integrate Users.au OAuth2 authentication into your Laravel applications using the Socialite package.

Overview

This package provides:

Features

How it Works

  1. OAuth2 Flow: Implements the standard OAuth2 authorization code flow
  2. User Authentication: Redirects users to Users.au for authentication
  3. Token Exchange: Exchanges authorization code for access token
  4. User Data Retrieval: Fetches user information using the access token
  5. User Mapping: Maps Users.au user data to Laravel Socialite User object

API Endpoints

The Provider makes calls to three main Users.au OAuth2 endpoints:

1. Authorization Endpoint

URL: GET {host}/oauth/authorize

Purpose: Redirects user to Users.au for authentication

Query Parameters:

Response: Redirects to your redirect_uri with authorization code

2. Token Endpoint

URL: POST {host}/oauth/token

Purpose: Exchange authorization code for access token

Request Headers:

Request Payload:

Expected Response:

3. User Info Endpoint

URL: GET {host}/api/user

Purpose: Retrieve authenticated user's information

Request Headers:

Expected Response:

Note: The user data structure can be customized using the userinfo_key configuration and custom field mappings (user_id, user_nickname, user_name, user_email, user_avatar).

Installation

Installation & Basic Usage

Please see the Base Installation Guide, then follow the provider specific instructions below.

Add configuration to config/services.php

Add provider event listener

Configure the package's listener to listen for SocialiteWasCalled events.

Add the event to your listen[] array in app/Providers/EventServiceProvider. See the Base Installation Guide for detailed instructions.

Usage

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

Returned User fields

Testing

This package includes comprehensive unit tests to ensure reliability and maintainability.

Running Tests

To run the test suite:

Continuous Integration

This package uses GitHub Actions for continuous integration with the following workflows:

All workflows run automatically on:

Test Structure

The tests use PHPUnit and Mockery for mocking dependencies, ensuring isolated unit tests without external dependencies.

Development

Requirements

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

Code Quality

This package follows PSR-4 autoloading standards and includes:


All versions of socialite-provider with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-json Version *
socialiteproviders/manager Version ~4.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package users-au/socialite-provider contains the following files

Loading the files please wait ...