Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5275

Support for custom HTTP headers in Decision Server java client configuration

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • jBPM 6.4.0.Final
    • KieServer
    • None
    • Documentation (Ref Guide, User Guide, etc.)
    • NEW
    • NEW

      Currently the Decision Server client only allows a username and password to be specified and works solely with HTTP Basic authentication. For custom authentication we will have access to a session cookie and need to pass that along in every HTTP request to Decision Server. The minimal functionality required would be the ability to set a header/cookie value on each http request, although perhaps just an extensible way of modifying the http requests would enable future authentication/authorization extensions.

      It is known that the KieServicesConfiguration object supports a ConnectionProvider object:

      configuration.setCredentialsProvider(new org.kie.server.client.CredentialsProvider() {
      			
      			@Override
      			public String getHeaderName() {
      				// TODO Auto-generated method stub
      				return null;
      			}
      			
      			@Override
      			public String getAuthorization() {
      				// TODO Auto-generated method stub
      				return null;
      			}
      		});
      

      However, the requirement is to set multiple custom HTTP header and have the possibility to change for every request made by the client.

            swiderski.maciej Maciej Swiderski (Inactive)
            swiderski.maciej Maciej Swiderski (Inactive)
            Karel Suta Karel Suta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: