[Fiware-fabulous-coaching] Object Storage GE authentication

Pasquale Vitale pvitale at eng.it
Tue Apr 7 09:09:41 CEST 2015


Hi Piotr,
if you want to use the Object Storage you have to follow this step (doc 
at link 
http://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Object_Storage_-_User_and_Programmers_Guide 
- but I suppose that you already login in the FI-Lab so you have 
username and password):

1. Initial Token (POST)
header: content-type = aplication/json
body: {"auth": {"passwordCredentials": {"username":"your_email", 
"password":"your_password"}}}
url: https://cloud.lab.fiware.org/keystone/v2.0/tokens

/retrieve the token id "//TOKEN_ID//" /(Ex: 
A1lEWgTJjyi_Gdafoc1L2oCsGYbCMGXi_-b0Vh6QOC0gLiIWWGkSrSKJ7V86dgJsqvWExy4QvK521QviTiQNyw)

2. Tenant (GET)
header: x-auth-token = TOKEN_ID
url: https://cloud.lab.fiware.org/keystone/v2.0/tenants

/retrieve the token id "TENANT_ID"/(Ex: 00000000000000000000000000000460)

3. Token for Object Storage (POST)
header: content-type = aplication/json
body: {"auth": {"passwordCredentials": {"username":"your_email", 
"password":"your_password"},"tenantName":"TENANT_ID"}}
url: https://cloud.lab.fiware.org/keystone/v2.0/tokens

/retrieve the token for Object Storage "ID" /(Ex: 
3a5cffde6dddec7691a22e182f4e28de)

4. Call (GET) - list of object storage
header: X-Auth-Token = 3a5cffde6dddec7691a22e182f4e28de
header: Accept = application/cdmi-object
header: X-CDMI-Specification-Version= 1.0.1

url: 
https://cloud.lab.fiware.org/Spain/object-store/v1/AUTH_00000000000000000000000000000460/

/retrive the list//of object storage

/Regards,
Pasquale/
/

Il 03/04/2015 23:22, Piotr Stępnicki ha scritto:
> Dear Support Team,
>
> I am participant of /FABulous accelerator programme/ (part of 
> /FIWARE)/ and I would like to use /Object Storage GE/ in my project.
>
> I've managed to use this GE but I was little confused when reading 
> documentation and I am not sure if I understand correctly 
> authentication procedure (the other part of API for this GE is pretty 
> straigthforward).
> My questions:
>
>  1. The docs say that authentication is not a part of
>     /cdmi/ specification but implementation feature - but which
>     implementation? The underlying OpenSwift or the code that is build
>     on top of Open Swift?).
>
>  1. How does the auth procedure is related to /IDM GE/ by /FIWARE/?
>     Does this GE use this IDM as /authorization server/? From what
>     I've seen from docs the /url/ it queries for tokens is different
>     from the adress of Token Provider of /IDM GE authorization server
>     /on/FI-LAB - /so no/./
>  2. What is the relation between /FI-LAB/ user (I/DM GE/ stuff) and
>     tenant/user concept of/ Object Storage GE/
>  3. I am new to web security stuff(started reading 3 days ago), but I
>     would like to ask for better understanding: Is the authentication
>     procedure implementation of /OAuth2/ paradigm? If so, for which
>     authorization flow: Client Credentials//Password based grant/other?/
>
>
> /By authorization server i understand the thing that issues tokens./
>
>
> With Regards,
> Piotr Stępnicki,
> /3DModelComposer/
>
>
> _______________________________________________
> Fiware-fabulous-coaching mailing list
> Fiware-fabulous-coaching at lists.fi-ware.org
> https://lists.fi-ware.org/listinfo/fiware-fabulous-coaching

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-fabulous-coaching/attachments/20150407/f1d88fd0/attachment.html>


More information about the Fiware-fabulous-coaching mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy