Skip to content

Jacwo/easy-authentication

Repository files navigation

环境准备

开始

  • 配置jdk img.png
  • 配置gradle img_1.png
  • 修改项目gradle地址,指向本地磁盘 img_2.png
  • 等项目自动构建吧,没反应就,点击下build
    img_3.png

启动

  • 目前项目结构
    ---easy-authentication //项目根
    --------authentication-jdbc //去数据库认证
    --------authentication-pac4j //对接第三方包,比如微信、钉钉、第三方身份源等
    --------authentication-rest //第三方接口认证
    --------authentication-service //应用对接数据库
    --------authentication-starter //启动包,新增的module都要在这个里面依赖一下
    --------gradle //gradle构建用的包括一些依赖
    -----------xxxx.gradle //高级用法,了解不深
    --------build.gradle // 本项目构建
    --------gradle.properties // 所有依赖版本号

  • 项目启动类 CasWebApplication.java

  • 配置文件 resources/application.properties

  • 前端文件 resources/templates

打包

  • 执行package命令
    img_4.png
  • 可执行jar包会输出到 authentication-starter/build/libs/authentication-starter-7.0.4.jar

简单介绍

  1. DefaultLoginWebflowConfigurer 认证流程

  2. configurePasswordResetFlow 密码流程

如何新增功能

  • 找到你想要新的功能对应的模块
  • 在当前项目中新增或者已有module中添加依赖
  • 依赖都要在对应module的build.gradle中添加
  • 查看cas源码找到对应模块的测试类。
  • 把测试类的配置拷贝到 resources/application.properties
  • 启动测试就ok

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published