QoS Anonymous Access Verification Extension

Expansion Description

QoS anonymous access authentication extension point.

Extension ports

org.apache.dubbo.qos.permission.PermissionChecker

Extended configuration

Dubbo QoS dubbo.application.qos-anonymous-access-permission-level Anonymous access permission verification.

Default implementation

org.apache.dubbo.qos.permission.DefaultAnonymousAccessPermissionChecker

Extended example

Maven project structure:

src
 |-main
    |-java
        |-com
            |-xxx
                |-XxxPermissionChecker.java (implements PermissionChecker interface)
    |-resources
        |-META-INF
            |-dubbo
                |-org.apache.dubbo.qos.permission.PermissionChecker` (plain text file, content: qosPermissionChecker=com.xxx.XxxPermissionChecker)

XxxPermissionChecker.java:

package com.xxx.qos.permission;

import org.apache.dubbo.qos.permission.PermissionChecker;

public class XxxAnonymousAccessPermissionChecker implements PermissionChecker {

    @Override
    public boolean access(CommandContext commandContext, PermissionLevel defaultCmdRequiredPermissionLevel) {
      //...
    }
}

META-INF/dubbo/org.apache.dubbo.qos.permission.PermissionChecker:

qosPermissionChecker=com.xxx.XxxPermissionChecker

Last modified January 2, 2023: Enhance en docs (#1798) (95a9f4f6c1c)