Download the PHP package webiny/login without Composer

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

Webiny Login

This is an application that provides additional control layer to the Webiny Framework Security component. The application standardizes the login process and user stateless token storage, making it ideal for RESTful and mobile applications.

Some of the built-in features:

Sample config

Setup

The Login app requires following Webiny Framework components:

Mongo Indexes

Create the following indexes on your Mongo Database:

Example setup:

Once you have the login instance, you can access the methods inside the class directly:

Security setup

Note that the Security component needs to implement Stateless token storage:

Login services

You can use the Login app as a RESTful service by extending the \Webiny\Login\LoginServices abstract class and implementing it into Webiny Framework Rest component. (view the app/services.php folder for sample implementation)

POST processLogin

This method processes the login request and returns either a login error, or in case of a success, authToken and deviceToken.

The method takes the following parameters via POST:

Login error codes:

POST getDeviceValidationToken

For the provided username, returns deviceValidationToken.

The device validation token is something that can be emailed or sent to the user via SMS or some other form of communication.

The method takes the following parameters via POST:

POST validateDeviceValidationToken

Validates the provided deviceValidationToken for the given username. If the token matches, deviceToken is returned. This device token needs to be provided to the processLogin method in order to pass the ValidateDevice.

The method takes the following parameters via POST:

POST getAccountActivationToken

In case users account is not activated, you need to request an activation token. Usually this token is then emailed to the user via an activation link.

The method takes the following parameters via POST:

POST validateAccountActivationToken

Method that validates the provided activation token and either returns a success message, or an error that the token in not valid.

The method takes the following parameters via POST:

POST logout

Invalidates the provided auth token for the given user.

The method takes the following parameters via POST:

POST generateForgotPasswordResetToken

Generates a forgot password link for the given username.

The method takes the following parameters via POST:

What doesn't it do

The Login app doesn't:


All versions of login with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
webiny/framework Version ~1.6 || dev-master
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 webiny/login contains the following files

Loading the files please wait ....