Skip to content

Commit

Permalink
Fix: rename parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
andy89923 committed Dec 25, 2023
1 parent cfe0d10 commit cd0f8e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,11 @@ func (c *UDRContext) GetTokenCtx(scope, targetNF string) (
c.NfId, c.NrfUri, scope, targetNF)
}

func (context *UDRContext) AuthorizationCheck(authHdr string, serviceName string) error {
func (context *UDRContext) AuthorizationCheck(token, serviceName string) error {
if !context.OAuth2Required {
return nil
}
err := oauth.VerifyOAuth(authHdr, serviceName, context.NrfCertPem)
err := oauth.VerifyOAuth(token, serviceName, context.NrfCertPem)
if err != nil {
return err
}
Expand Down

0 comments on commit cd0f8e0

Please sign in to comment.