定制 yeltrik/soap-auth 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

yeltrik/soap-auth

Composer 安装命令:

composer require yeltrik/soap-auth

包简介

Authentication through SOAP

README 文档

README

SOAPAuth is a Library to Authorize an Username and Password with a custom SOAP Auth WSDL

Install

Install the SOAP Auth package

composer require yeltrik/soap-auth

Configuration

After install, there are just a few modifications that can be made to integrate with your Laravel App.

.env

To configure the WSDL for you App, you should set the WSDL URL and Key in the .env file

SOAP_AUTH_WSDL_URL = 'https://apps.wdsl.com/services/authlogin/auth.wsdl'
SOAP_AUTH_WSDL_KEY = 'abc123def456789'
SOAP_AUTH_LOGO_URL = 'https://www.wdsl.com/marketingandcommunications/images/logo.jpg'
SOAP_AUTH_USERNAME_LABEL = 'Username'
SOAP_AUTH_USERNAME_PLACEHOLDER = 'username'

routes/web.php

If you do not with to allow users to self register, then you can disable registration through laravel/ui by disabling the Auth::route();

Auth::routes([
    'register' => false,
]);

You can override the login by first disabling Auth, then naming the route for SOAP;

Auth::routes(['register' => false, 'login' => false]);

Route::get('login', [SOAPAuthController::class, 'showForm'])->name('login');

Integrating into a blade by directing to the authrorize route

route('authorize')

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固