Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-15159

RemoteAPI Authentication and Custom Authenticators Improvements (PATCH)

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      NOTE: This suggestion is for Confluence Server. Using Confluence Cloud? See the corresponding suggestion.

      In order to make it easy to leverage both com.atlassian.confluence.rpc.auth.TokenAuthenticationManager and custom authenticator code, it would be great if
      TokenAuthenticationManager would be more friendly to its subclasses by sharing some of its private fields and methods as protected.


      diff --git a/apps/confluence/confluence-project/confluence/src/java/com/atlassian/confluence/rpc/auth/TokenAuthenticationManager.java b/apps/confluence/confluence-project/confluence/src/java/com/atlassian/confluence/rpc/auth/TokenAuthenticationManager.java
      --- a/apps/confluence/confluence-project/confluence/src/java/com/atlassian/confluence/rpc/auth/TokenAuthenticationManager.java
      +++ b/apps/confluence/confluence-project/confluence/src/java/com/atlassian/confluence/rpc/auth/TokenAuthenticationManager.java
      @@ -26,10 +26,10 @@
       {
           public static final String TOKEN_CACHE = TokenAuthenticationManager.class.getName() + ".tokens";
      
      -    private UserAccessor userAccessor;
      -    private PermissionManager permissionManager;
      +    protected UserAccessor userAccessor;
      +    protected PermissionManager permissionManager;
           private SettingsManager settingsManager;
      -    private CacheManager cacheManager;
      +    protected CacheManager cacheManager;
           private EventManager eventManager;
      
           /**
      @@ -190,7 +190,7 @@
               return userAccessor.getUser(name);
           }
      
      -    private Cache getCache()
      +    protected Cache getCache()
           {
               return cacheManager.getCache(TOKEN_CACHE);
           }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              15d9a6950818 Igor Minar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: