承接 libaro/secure-id 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

libaro/secure-id

Composer 安装命令:

composer require libaro/secure-id

包简介

A package to integrate secure-id

README 文档

README

Latest Version on Packagist Total Downloads

This package is no longer maintained and has been moved to https://github.com/libaro-io/miqey-client

The Secure ID Laravel Package simplifies the integration of the Secure ID functionality into your Laravel projects. Secure ID is designed to facilitate a secure login procedure by generating sign requests, managing user responses through QR codes or SMS, and seamlessly logging users into your projects.

Installation

You can install the package via composer:

composer require libaro/secure-id

Publish the config file:

php artisan vendor:publish --provider="Libaro\SecureId\SecureIdServiceProvider" --tag="config"

The content of the config file:

return [
    'api_url' => env('SECURE_ID_API_URL', 'https://secureid.digitalhq.com/api/generate'),
    'api_key' => env('SECURE_ID_API_KEY'),
    'api_url_prefix' => env('SECURE_ID_API_URL_PREFIX', '/api/secure-id'),

    'webhook_handlers' => [
        \Support\Interfaces\SecureIdWebhookHandler::class,
    ],
];

Usage

The default WebhookHandler can be replaced by a custom handler in the config file for handling events to authenticating users.

class SecureIdWebhookHandler implements WebhookHandlerInterface
{
	public function handleWebhook(string $phone, string $code): void
	{
		event(new SMSSignRequestReceived($code, $phone));
	}
}

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email tim@libaro.be instead of using the issue tracker.

Credits

Props to:

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

统计信息

  • 总下载量: 480
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-17