这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
colin 890e56af57 fix(openiddict): Bind the QR code login to the tenant that scanned it and tag its security logs 1 month ago
..
LINGYUN/Abp/OpenIddict/QrCode fix(openiddict): Bind the QR code login to the tenant that scanned it and tag its security logs 1 month ago
Microsoft/Extensions/DependencyInjection feat(openiddict): 增加扫码登录实现 2 years ago
LINGYUN.Abp.OpenIddict.QrCode.csproj upgrade: upgrade abp to 10.0.2 11 months ago
README.md fix(openiddict): Bind the QR code login to the tenant that scanned it and tag its security logs 1 month ago

README.md

LINGYUN.Abp.OpenIddict.QrCode

ABP version NuGet

简介

LINGYUN.Abp.OpenIddict.QrCode 是 OpenIddict 的扫码登录认证扩展模块,提供了扫码登录认证功能。

English

功能特性

  • 扫码二维码登录

  • 安全日志

    • 记录登录尝试
    • 记录登录失败

安装

dotnet add package LINGYUN.Abp.OpenIddict.QrCode

使用

  1. 添加 [DependsOn(typeof(AbpOpenIddictQrCodeModule))] 到你的模块类。

  2. 配置 OpenIddict 服务器:

public override void PreConfigureServices(ServiceConfigurationContext context)
{
    PreConfigure<OpenIddictServerBuilder>(builder =>
    {
        // 允许门户认证流程
        builder.AllowQrCodeFlow();
    });
}
  1. 使用示例:
POST /connect/token
Content-Type: application/x-www-form-urlencoded

grant_type=qr_code&
qrcode_key=a73faf8936f649868223a9287317d8d1&
scope=openid profile

认证流程

  1. 二维码验证
    • 用户提供二维码Key (qrcode_key_)
    • 如未提供或无效,返回无效的二维码错误

参数说明

  • qrcode_key_ (必填)
    • 二维码Key

注意事项

  • 所有认证操作都会记录安全日志
  • 建议在生产环境中使用 HTTPS