BPM, Workflow, and Case

 View Only

Fetch Objectstore is taking long time with WSSubject

  • 1.  Fetch Objectstore is taking long time with WSSubject

    Posted Tue April 16, 2024 06:01 PM

    Hi Team,

    We have a REST API for filenet operations which uses OKTA OAuth 2.0 PKCE token and we have OIDC RP client will validate and convert it to LTPA and then we are using WSSubject.getCallerSubject() to get the user subject from server and to fetch domain and objectstore without using user name and password and it is working fine. But it is taking more time when compared with connection code with user name and password.

    FYI.. ROGER Bacalzo helped us to get P8 connection with PKCE token for our REST API but it is taking time to fetch the objectstore.

    Please  help us with better options to fetch objectstore in less time.

    Here is the code snippet which we are using to fetch domain and objectstore.

    Subject subject = WSSubject.getCallerSubject();
    if(subject != null){
    UserContext uc = UserContext.get();
    Connection con = Factory.Connection.getConnection(uri);
    uc.pushSubject(subject);
    Domain dom = Factory.Domain.fetchInstance(con, null, null);
    String domainName = dom.get_Name();
    ObjectStore os = Factory.ObjectStore.fetchInstance(dom, objStore, null);



    ------------------------------
    Ravi Kiran Saladi
    ------------------------------