UNPKG

client-swift

Version:

Object Storage OpenStack Swift client for Node.js

23 lines (19 loc) 455 B
const AuthBase = require("./base") module.exports = class V1Auth extends AuthBase { authOptions(authUrl) { return { url: authUrl, method: 'GET', headers: { 'x-storage-user': this.data.tenant+":"+this.data.userName, 'x-storage-pass': this.data.apiKey } } } token(response) { return response.headers['x-auth-token'] } storageUrl(response) { return response.headers['x-storage-url'] } }