Download the PHP package mobieve/auth-client without Composer

On this page you can find all versions of the php package mobieve/auth-client. 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 auth-client

mobieve-auth-client-php

Mobieve Auth Client PHP

This package provides Classes for Auth Clients made by Mobieve.

Mobieve Custom HTTP Client

Configuration

In config/app.php include:

and:

If user requests is needed you also need to include:

You also need to configure auth service info in config/services.php, like:

and include your personal MOBIEVE_AUTH_CLIENT_ID and MOBIEVE_AUTH_CLIENT_SECRET in your environment variables.

Usage

Middleware

Four different middleware classes are available.

MobieveClientAuthMiddleware is used to ensure that the requester is a Client registered in Mobieve Auth server.

MobieveUserAuthMiddleware, on the other hand, is used to ensure that the requester is an User registered in Mobieve Auth server.

MobieveUserTeamAuthMiddleware, is used to ensure thar the request is an User with Team registered in Mobieve Auth server.

MobieveAuthMiddleware, will only check if token is valid.

To use Mobieve Middleware layer in order to check incoming requests authorization include following line in Http/Kernel.php:

You need to include the middleware that you want to use in Http/Kernel.php file, as demonstrated below:

and add 'mobieve.auth-client' or 'mobieve.auth-user' in all routes you need to protect, according to the desired behavior.


All versions of auth-client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
guzzlehttp/guzzle Version ^6.5.0
illuminate/support Version ^6.0
symfony/http-kernel Version ^4.4.1
symfony/psr-http-message-bridge Version ^2.0
tymon/jwt-auth Version ^1.0.0-rc-5
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 mobieve/auth-client contains the following files

Loading the files please wait ....