jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-1220) Managing the header name in the TempAuth (Identity Protocol v1)
Date Thu, 05 Jan 2017 15:18:58 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15801618#comment-15801618
] 

ASF subversion and git services commented on JCLOUDS-1220:
----------------------------------------------------------

Commit ac2f746e64821878f157ba4b1c12675286ccc8e1 in jclouds's branch refs/heads/master from
[~ecarriere]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=ac2f746 ]

JCLOUDS-1220: Possibility to change the name of Header of Identity v1 protocol


> Managing the header name in the TempAuth (Identity Protocol v1) 
> ----------------------------------------------------------------
>
>                 Key: JCLOUDS-1220
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1220
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-blobstore
>    Affects Versions: 2.0.0
>            Reporter: Etienne Carriere
>            Priority: Minor
>              Labels: openstack-swift
>             Fix For: 2.1.0
>
>
> State of jclouds
> The openstack swift "official" client (in python) manage this v1 protocol (http://docs.openstack.org/developer/python-swiftclient/swiftclient.html)
so even if we don't have a specification, we will use the code of the official client for
the implementation. 
> In jclouds, there is currently a sort-of v1 identity protocol in the openstack-swift
module:  in apis/openstack-swift/src/main/java/org/jclouds/openstack/swift/v1/config/SwiftAuthenticationModule.java,
there is a tempAuthCredentials which is almost the identity v1 protocol except that the name
of the headers was not the same :
>   = X-Storage-User vs X-Auth-User
>   = X-Storage-Path vs X-Auth-Key
> Proposal
>   = Keep the current behaviour as default
>   = Add 2 parameters to change the header name through variables in the Properties put
in the Builder like that :
>      Properties overrides = new Properties();
>       overrides.setProperty("jclouds.keystone.credential-type", "tempAuthCredentials");
>       overrides.setProperty("jclouds.swift.tempAuth.headerUser", "X-Auth-User");
>       overrides.setProperty("jclouds.swift.tempAuth.headerPass", "X-Auth-Pass");
>       swiftApi = ContextBuilder.newBuilder(provider)
>             .endpoint(args[1])
>             .credentials(identity, credential)
>             .modules(modules)
>             .overrides(overrides)
>             .buildApi(SwiftApi.class);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message