Skip to content

Commit

Permalink
wip: AuthenticationSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 authored and Alonza0314 committed Nov 14, 2024
1 parent cc4ddc7 commit a311085
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 @@ -271,14 +271,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 @@ -452,7 +464,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 a311085

Please sign in to comment.