Download the PHP package chivincent/laravel-kratos without Composer
On this page you can find all versions of the php package chivincent/laravel-kratos. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download chivincent/laravel-kratos
More information about chivincent/laravel-kratos
Files in chivincent/laravel-kratos
Download chivincent/laravel-kratos
More information about chivincent/laravel-kratos
Files in chivincent/laravel-kratos
Vendor chivincent
Package laravel-kratos
Short Description Laravel Kratos integrates authentication features with ory/kratos
License MIT
Package laravel-kratos
Short Description Laravel Kratos integrates authentication features with ory/kratos
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-kratos
Laravel Kratos
Introduction
Laravel Kratos integrates authentication features with ory/kratos.
Requirements
- I'm building an API with Laravel.
- I'm not using built-in authentication feature in Laravel, because Kratos has been implemented.
- I won't use them also in the future.
- The frontend is a separated project
- The frontend authenticates with Kratos server, and receive a
ory_kratos_session
cookie. - The frontend makes requests to the Laravel API, with
ory_kratos_session
cookie.
- The frontend authenticates with Kratos server, and receive a
Install
Configuration
-
Check the
config/kratos.php
, ensure the endpoint of Kratos service. -
Update
config/auth.php
- Update
config/cors.php
Database Configuration
If using kratos-database
as UserProvider in auth.guards.kratos.provider
, it's helpful to setup connection with default user model.
- Update
config/database.php
, it is an example for Postgresql below:
MustVerifyEmail
Laravel are using Illuminate\Contracts\Auth\MustVerifyEmail
to check if user's email has been verified.
It can easily implements Illuminate\Contracts\Auth\MustVerifyEmail
by extending models:
Usage
In routes/api.php
:
All versions of laravel-kratos with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1||^8.2
ory/kratos-client-php Version ^0.13.1
illuminate/support Version ^10
ory/kratos-client-php Version ^0.13.1
illuminate/support Version ^10
The package chivincent/laravel-kratos contains the following files
Loading the files please wait ....