File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ func (h APIHandler) samlConnecter(c *gin.Context) {
180
180
181
181
data := c .Request .Form
182
182
samlResponseData := data .Get ("SAMLResponse" )
183
+ fmt .Println (samlResponseData )
183
184
184
185
samlResponse , err := saml .Verify (
185
186
samlResponseData ,
@@ -194,11 +195,12 @@ func (h APIHandler) samlConnecter(c *gin.Context) {
194
195
return
195
196
}
196
197
username := samlResponse .Assertion .Subject .NameID .Value
198
+
197
199
if err != nil {
198
200
c .AbortWithError (http .StatusNotAcceptable , fmt .Errorf ("username not found" ))
199
201
return
200
202
}
201
-
203
+ // -- belove this line is how we handle users that are authenticatd
202
204
jwtToken , err := generateJWT (username , 12 )
203
205
if err != nil {
204
206
c .AbortWithError (http .StatusNotAcceptable , err )
You can’t perform that action at this time.
0 commit comments