Skip to content

Commit

Permalink
fix: enable oam OAuth2
Browse files Browse the repository at this point in the history
  • Loading branch information
donald1218 committed Jun 25, 2024
1 parent 1e315a4 commit 873acee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,11 +572,6 @@ func (c *AMFContext) AuthorizationCheck(token string, serviceName models.Service
logger.UtilLog.Debugf("AMFContext::AuthorizationCheck: OAuth2 not required\n")
return nil
}
// TODO: free5gc webconsole uses namf-oam but it can't get token since it's not an NF.
if serviceName == models.ServiceName_NAMF_OAM {
logger.UtilLog.Warnf("OAuth2 is enable but namf-oam didn't check token now.")
return nil
}

logger.UtilLog.Debugf("AMFContext::AuthorizationCheck: token[%s] serviceName[%s]\n", token, serviceName)
return oauth.VerifyOAuth(token, string(serviceName), c.NrfCertPem)
Expand Down

0 comments on commit 873acee

Please sign in to comment.