jetbrains.buildServer.controllers
Interface AuthorizationInterceptor


public interface AuthorizationInterceptor

Interceptor which checks authorization for all of the HTTP requests.


Method Summary
 void addPathBasedPermissionsChecker(java.lang.String path, RequestPermissionsChecker checker)
          Adds new request permissions checker.
 void addPathNotRequiringAuth(java.lang.String path)
          Adds path that do not require authentication check.
 

Method Detail

addPathNotRequiringAuth

void addPathNotRequiringAuth(@NotNull
                             java.lang.String path)
Adds path that do not require authentication check.

Parameters:
path - a path

addPathBasedPermissionsChecker

void addPathBasedPermissionsChecker(@NotNull
                                    java.lang.String path,
                                    @NotNull
                                    RequestPermissionsChecker checker)
Adds new request permissions checker.

Parameters:
path - request path to which the specified checker is bounded. Note that the path does not include context part.
checker - checker to invoke for the specified request path