Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-15159

RemoteAPI Authentication and Custom Authenticators Improvements (PATCH)

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      NOTE: This suggestion is for Confluence Cloud. Using Confluence Server? 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: