Skip to content

Commit

Permalink
Fix namespace get 403
Browse files Browse the repository at this point in the history
  • Loading branch information
nkorange committed Mar 4, 2020
1 parent eb754eb commit 842818f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public Boolean createNamespace(HttpServletRequest request, HttpServletResponse r
* @return java.lang.Boolean
*/
@GetMapping(params = "checkNamespaceIdExist=true")
@Secured(resource = NacosAuthConfig.CONSOLE_RESOURCE_NAME_PREFIX + "namespaces", action = ActionTypes.READ)
public Boolean checkNamespaceIdExist(@RequestParam("customNamespaceId") String namespaceId){
if(StringUtils.isBlank(namespaceId)){
return false;
Expand Down
2 changes: 1 addition & 1 deletion distribution/conf/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ nacos.core.auth.default.token.expire.seconds=18000
nacos.core.auth.default.token.secret.key=SecretKey012345678901234567890123456789012345678901234567890123456789

### Turn on/off caching of auth information. By turning on this switch, the update of auth information would have a 15 seconds delay.
nacos.core.auth.caching.enabled=true
nacos.core.auth.caching.enabled=false


#*************** Istio Related Configurations ***************#
Expand Down

0 comments on commit 842818f

Please sign in to comment.