Fix oc-auth for k8s integration

This commit is contained in:
plm
2025-01-21 15:23:45 +01:00
parent 27e2df2310
commit 776aac5d43
5 changed files with 247 additions and 16 deletions

View File

@@ -342,7 +342,7 @@ func (k KetoConnector) createRelationShip(object string, relation string, subjec
}
host := conf.GetConfig().PermissionConnectorHost
port := fmt.Sprintf("%v", conf.GetConfig().PermissionConnectorAdminPort)
b, err := caller.CallPut("http://"+host+":"+port, "/relation-tuples", body)
b, err := caller.CallPut("http://"+host+":"+port, "/admin/relation-tuples", body)
if err != nil {
log := oclib.GetLogger()
log.Error().Msg(err.Error())