This commit is contained in:
+2
-2
@@ -8,10 +8,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
paas "proxmoxaas-common-lib"
|
paas "proxmoxaas-common-lib"
|
||||||
|
"uuid"
|
||||||
|
|
||||||
"github.com/gin-contrib/sessions"
|
"github.com/gin-contrib/sessions"
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
uuid "github.com/nu7hatch/gouuid"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func POST_Ticket(c *gin.Context) {
|
func POST_Ticket(c *gin.Context) {
|
||||||
@@ -68,7 +68,7 @@ func POST_Ticket(c *gin.Context) {
|
|||||||
// create new session
|
// create new session
|
||||||
session := sessions.Default(c)
|
session := sessions.Default(c)
|
||||||
// create random uuid to map user to backends
|
// create random uuid to map user to backends
|
||||||
uuid, _ := uuid.NewV4()
|
uuid := uuid.NewV4()
|
||||||
// set uuid mapping in session
|
// set uuid mapping in session
|
||||||
session.Set("SessionUUID", uuid.String())
|
session.Set("SessionUUID", uuid.String())
|
||||||
// set uuid mapping in LDAPSessions
|
// set uuid mapping in LDAPSessions
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ require (
|
|||||||
github.com/gin-gonic/gin v1.12.0
|
github.com/gin-gonic/gin v1.12.0
|
||||||
github.com/go-ldap/ldap/v3 v3.4.14
|
github.com/go-ldap/ldap/v3 v3.4.14
|
||||||
github.com/luthermonson/go-proxmox v0.8.1
|
github.com/luthermonson/go-proxmox v0.8.1
|
||||||
github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d
|
|
||||||
proxmoxaas-common-lib v0.0.0
|
proxmoxaas-common-lib v0.0.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user