Skip to content

Commit b2dcd71

Browse files
authored
fix send SUPI even if authentication is failure (#4)
1 parent 2eef8e2 commit b2dcd71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

producer/ue_authentication.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ func Auth5gAkaComfirmRequestProcedure(updateConfirmationData models.Confirmation
328328
responseBody.AuthResult = models.AuthResult_SUCCESS
329329
success = true
330330
logger.Auth5gAkaComfirmLog.Infoln("5G AKA confirmation succeeded")
331+
responseBody.Supi = currentSupi
331332
responseBody.Kseaf = ausfCurrentContext.Kseaf
332333
} else {
333334
ausfCurrentContext.AuthStatus = models.AuthResult_FAILURE
@@ -346,7 +347,6 @@ func Auth5gAkaComfirmRequestProcedure(updateConfirmationData models.Confirmation
346347
return nil, &problemDetails
347348
}
348349

349-
responseBody.Supi = currentSupi
350350
return &responseBody, nil
351351
}
352352

0 commit comments

Comments
 (0)