Download the PHP package hrevert/ht-oauth-server-client-module without Composer

On this page you can find all versions of the php package hrevert/ht-oauth-server-client-module. 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 ht-oauth-server-client-module

HtOauth\Server\ClientModule

A Zend Framework 2 module which provides custom grant for zfr-oauth2-server to authenticate users via third party applications like facebook, google etc.

Master Branch Build Status Latest Stable Version

What's with the name?

The module provides a grant for a oauth2 server and it is also a client for oauth2 servers of facebook, google etc. So, it is named as server as well as client.

Installation

Configuring the module

Setting the User class

User class must implement Hrevert\OauthClient\Model\UserInterface. Then, you need to modify the Doctrine mapping to associate this interface with your own user class.

Provider configuration

You need to define the credentials like client id, client secret and other configuration. Read this for these configuration.

Adding grant types

Enabling providers

Enable providers by adding records to the table oauth_provider.

Autocreating user

When a new user tries to log in, s/he is not allowed to log in by default.

To automatically create a new user, you need to specify a callable for creating a user.

How It Works

Login with OAuth 2.0

  1. Client: Client sends a POST request to the server at /oauth/token with oauth2 authorization code or access token.
  2. Server: With authorization code, authorization code is exchanged for provider access token.
  3. Server: User information is retrived using the provider access token from Step 2.
  4. Server: Look up the user by the unique provider id. If user already exists, grab the existing user, otherwise create a new user account.
  5. Server: Reply with a new access token.

All versions of ht-oauth-server-client-module with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
hrevert/ht-oauth-client-module Version 0.0.*
hrevert/ht-league-oauth-client-module Version 0.3.*
zendframework/zend-stdlib Version ~2.2
zfr/zfr-oauth2-server-module Version 0.7.*
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 hrevert/ht-oauth-server-client-module contains the following files

Loading the files please wait ....