Feature #7451
authorization token support in libclient
100%
Description
Current libclient_java doesn't support the use of multiple auth tokens via D1Client, as it somewhat does with certificates. That is to say, the header can be added, but it will affect all other clients using the D1Client multipartRestClient.
I propose to add an AuthTokenSession class that can be passed into the Session parameter for API calls.
The AuthTokenSession will not use certificates, so will require I different way to set up the connectionManager for the httpClient. Do we still need to have host verification?
The session passed into the API should know how to switch to using the attached HttpClient
Using a request interceptor to set the Authorization header to prevent it from being messed with by other headers.
Associated revisions
refs #7451. Added AuthTokenSession class to support use of authorization tokens for client communications. Initial commit.
refs #7451. Added AuthTokenSession class to support use of authorization tokens for client communications. Initial commit.
refs #7451. removing setAuthToken method (buggy) now that we have the AuthTokenSession object and logic.
refs #7451. removing setAuthToken method (buggy) now that we have the AuthTokenSession object and logic.
History
#1 Updated by Rob Nahf about 9 years ago
- Description updated (diff)
#2 Updated by Matthew Jones about 9 years ago
Do you mean SSL host verification? If so, then yes, you should always enable SSL host verification. Any SSL session set with host verification off would be insecure.
#3 Updated by Rob Nahf about 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 30
The AuthTokenSession is designed to establish TLS / SSL connection without a client x509 certificate. This sets up the same host verification as used within CertificateManager. (the authorization token will be used as the client credential material).
#4 Updated by Rob Nahf over 8 years ago
- Status changed from In Progress to Closed
- % Done changed from 30 to 100
In production.