Skip to content

Commit

Permalink
wip: AuthenticationSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Sep 13, 2024
1 parent 649d4c9 commit cd931ff
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions backend/WebUI/api_webui.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,26 @@ 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)

logger.ProcLog.Infoln("Get a JSON Example")

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{
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit cd931ff

Please sign in to comment.