Download the PHP package mannysoft/api-auth without Composer
On this page you can find all versions of the php package mannysoft/api-auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package api-auth
Laravel API Authentication
Laravel package for authentication in API.
Installation
Require this package with composer.
Open your oauth_clients
table and look for password_client
Change your .env
APP_OAUTH_CLIENT_ID=
APP_OAUTH_CLIENT_SECRET=
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider
.
add the Laravel\Passport\HasApiTokens
trait to your App\User
model. This trait will provide a few helper methods to your model which allow you to inspect the authenticated user's token and scopes:
Update your config/services.php
if you are using login with facebook
Update your config/api-auth.php
depending in your needs
Finally, in your config/auth.php
configuration file, you should set the driver option of the api authentication guard to passport. This will instruct your application to use Passport's TokenGuard when authenticating incoming API requests:
Reset Password Email
To get started, override the sendPasswordResetNotification
method on your User
model. Within this method, you may send the notification using any notification class you choose. The password reset $token
is the first argument received by the method:
Routes available
Route | Are | Cool |
---|---|---|
Configuration
Config | Value | Default |
---|---|---|
login_facebook | ||
login_accountkit | ||
login_url | ||
logout_url | ||
forgot_password | ||
change_password | ||
username | ||
reset_password_deep_link |
All versions of api-auth with dependencies
laravel/passport Version ^7.4
laravel/socialite Version ^4.2
tymon/jwt-auth Version ^1.0.0-rc.5
mannysoft/api-form-request Version ^0.2