From cd931ff9ebbe7271080ace5debbb53bec1ef66f7 Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" Date: Fri, 13 Sep 2024 02:24:11 +0000 Subject: [PATCH] wip: AuthenticationSubscription --- backend/WebUI/api_webui.go | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/backend/WebUI/api_webui.go b/backend/WebUI/api_webui.go index 8d4d064f..77884456 100644 --- a/backend/WebUI/api_webui.go +++ b/backend/WebUI/api_webui.go @@ -270,6 +270,7 @@ func sendResponseToClientFilterTenant(c *gin.Context, response *http.Response, t c.JSON(response.StatusCode, sliceData) } +// TODO: R15 models to R17 func GetSampleJSON(c *gin.Context) { setCorsHeader(c) @@ -277,7 +278,18 @@ func GetSampleJSON(c *gin.Context) { var subsData SubsData - authSubsData := models.AuthenticationSubscription{ + authSubsData := r17models.AuthenticationSubscription{ + AuthenticationMethod: r17models.AuthMethod__5_G_AKA, + SequenceNumber: &r17models.SequenceNumber{ + SqnScheme: r17models.SqnScheme_GENERAL, + Sqn: "16f3b3f70fc2", + }, + // EncOpcKey + // EncTopcKey + } + fmt.Println(authSubsData) + + oldAuthSubsData := models.AuthenticationSubscription{ AuthenticationManagementField: "8000", AuthenticationMethod: "5G_AKA", // "5G_AKA", "EAP_AKA_PRIME" Milenage: &models.Milenage{ @@ -451,7 +463,7 @@ func GetSampleJSON(c *gin.Context) { subsData = SubsData{ PlmnID: servingPlmnId, UeId: ueId, - AuthenticationSubscription: authSubsData, + AuthenticationSubscription: oldAuthSubsData, AccessAndMobilitySubscriptionData: amDataData, SessionManagementSubscriptionData: smDataData, SmfSelectionSubscriptionData: smfSelData,