# mod-auth **Repository Path**: fluagen/mod-auth ## Basic Information - **Project Name**: mod-auth - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-10-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mod-auth > open api 平台认证服务模块 ## 1. 特性 * 支持 OAuth 2.0 标准 ## 2. 系统要求 * JDK 1.8+ * Redis Server 3.2+ ## 3. 如何使用 1.安装 ``` $ mvn install ``` 2.启动服务 ``` $ java -jar target/mod-auth-0.0.1-SNAPSHOT-fat.jar -Dlsp.host=192.168.2.66 -Dlsp.port=8081 ``` 指定配置文件的方式启动服务 ``` $ java -jar target/mod-auth-0.0.1-SNAPSHOT-fat.jar -conf=application-conf.json ``` * 开发模式启动 ``` $ java -jar target/mod-auth-0.0.1-SNAPSHOT-fat.jar -conf=application-conf.json -Denv.dev=yes ``` 开发模式下不需要安装Redis,系统将启动内嵌的Redis Server 3.默认配置项 ```json { "host": "127.0.0.1", "port": 8081, "lsp.host":"192.168.2.66", "lsp.port":8081, "lp.secret": "lp_secret" } ``` | 配置项 | 默认值 | 说明 | |-----------|--------------|------------------| | host | 0.0.0.0 | 服务注册地址 | | port | 8081 | 服务注册端口 | | lsp.host | 192.168.2.66 | LSP平台地址 | | lsp.port | 8081 | LSP平台端口 | | lp.secret | lp_secret | 代理认证签名密钥 | # 附录 [Open API 安全认证子系统设计](http://gitlab.calis.edu.cn/open-service-platform/doc/blob/master/auth/oauth.md)