master
黄海 5 years ago
parent e62a618231
commit 9b7eab0a71

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -10,7 +10,7 @@ definitions:
example: "true"
type: boolean
type: object
host: 127.0.0.1:8002
host: 10.10.14.187:8002
info:
contact:
email: support@swagger.io

@ -31,7 +31,7 @@ import (
// @contact.email support@swagger.io
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host 127.0.0.1:8002
// @host 10.10.14.187:8002
func main() {
// 发布模式
//gin.SetMode(gin.ReleaseMode)

@ -191,7 +191,7 @@ func generateAuthCode(context *gin.Context, identityId string, personId string,
})
return
} else { //GET方式跳转回客户端的回调页
context.Redirect(301, url)
context.Redirect(302, url)
return
}
}

@ -35,6 +35,7 @@ func main() {
cli.Run("chmod +x /usr/local/dsMin/dsSso/start.sh")
cli.Run("chmod +x /usr/local/dsMin/dsSso/debug.sh")
cli.Run("chmod +x /usr/local/dsMin/dsSso/stop.sh")
cli.Run("cd /usr/local/dsMin/dsSso/ && dos2unix *.sh")
//启动
cli.Run("cd /usr/local/dsMin/dsSso && ./start.sh")
log.Println("恭喜,统一认证服务上传并启动成功!")

@ -663,7 +663,7 @@ type swaggerInfo struct {
// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = swaggerInfo{
Version: "2.0",
Host: "10.10.14.187:8000",
Host: "127.0.0.1:8000",
BasePath: "",
Schemes: []string{},
Title: "东师理想统一认证中心(OAuth2+Sso)",

@ -6,7 +6,7 @@
"contact": {},
"version": "2.0"
},
"host": "10.10.14.187:8000",
"host": "127.0.0.1:8000",
"paths": {
"/oauth2/AddClient": {
"post": {

@ -32,7 +32,7 @@ definitions:
description: 个数
type: object
type: object
host: 10.10.14.187:8000
host: 127.0.0.1:8000
info:
contact: {}
description: 参考自xxl-sso

@ -56,7 +56,7 @@ func startOAuth2Server() {
// @title 东师理想统一认证中心(OAuth2+Sso)
// @version 2.0
// @description 参考自xxl-sso
// @host 10.10.14.187:8000
// @host 127.0.0.1:8000
func main() {
// 发布模式
//gin.SetMode(gin.ReleaseMode)

Loading…
Cancel
Save