Code Review
/
nonrtric
/
plt
/
sme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Moving add client in keycloak from security to invoker api
[nonrtric/plt/sme.git]
/
capifcore
/
internal
/
securityservice
/
security.go
diff --git
a/capifcore/internal/securityservice/security.go
b/capifcore/internal/securityservice/security.go
index
e211f67
..
ddedc85
100644
(file)
--- a/
capifcore/internal/securityservice/security.go
+++ b/
capifcore/internal/securityservice/security.go
@@
-192,11
+192,6
@@
func (s *Security) PutTrustedInvokersApiInvokerId(ctx echo.Context, apiInvokerId
return sendCoreError(ctx, http.StatusBadRequest, fmt.Sprintf(errMsg, err))
}
return sendCoreError(ctx, http.StatusBadRequest, fmt.Sprintf(errMsg, err))
}
- err = s.keycloak.AddClient(apiInvokerId, "invokerrealm")
- if err != nil {
- return sendCoreError(ctx, http.StatusBadRequest, fmt.Sprintf(errMsg, err))
- }
-
uri := ctx.Request().Host + ctx.Request().URL.String()
ctx.Response().Header().Set(echo.HeaderLocation, ctx.Scheme()+`://`+path.Join(uri, apiInvokerId))
uri := ctx.Request().Host + ctx.Request().URL.String()
ctx.Response().Header().Set(echo.HeaderLocation, ctx.Scheme()+`://`+path.Join(uri, apiInvokerId))