From 485c6282b821a16e1fc233d1d4e8a8e12573fbae Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" Date: Wed, 17 Jan 2024 07:20:31 +0000 Subject: [PATCH] Fix: change parameter type of OAuth functions --- oauth/get_token_context.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/oauth/get_token_context.go b/oauth/get_token_context.go index 1672fb63..73adb797 100644 --- a/oauth/get_token_context.go +++ b/oauth/get_token_context.go @@ -17,10 +17,10 @@ var tokenMap sync.Map var clientMap sync.Map func GetTokenCtx( - nfType models.NfType, - nfId, nrfUri, scope, targetNF string, + nfType, targetNF models.NfType, + nfId, nrfUri, scope string, ) (context.Context, *models.ProblemDetails, error) { - tok, pd, err := sendAccTokenReq(nfType, nfId, nrfUri, scope, targetNF) + tok, pd, err := sendAccTokenReq(nfType, targetNF, nfId, nrfUri, scope) if err != nil { return nil, pd, err } @@ -29,8 +29,8 @@ func GetTokenCtx( } func sendAccTokenReq( - nfType models.NfType, - nfId, nrfUri, scope, targetNF string, + nfType, targetNF models.NfType, + nfId, nrfUri, scope string, ) (oauth2.TokenSource, *models.ProblemDetails, error) { var client *Nnrf_AccessToken.APIClient