Suoritettu

Need a Python library for generating WSSE headers for API calls

Our API requires WSSE headers to communicate with the server. We presently have generators written in Java, PHP, C# and JavaScript. All produce the same output. We now want to add Python to the list.

What we want out of this project:

1- A code library that customers can integrate into their own projects

2- Unit tests to confirm the code is working as expected

3- Documentation explaining how the code works

The following information is needed to generate a WSSE header:

1- The name of the customer as it appears in the software;

2- A nonce, which is a random string generated by you. This string must be different with each request;

The current date & time in UTC-0. See [login to view URL] for more information;

3- Username – Your username;

4- API token – A unique token assigned to you by us.

The following PHP script demonstrates how to generate a WSSE header. This code can be easily tested using PhpFiddle ([login to view URL]).

=== PHP EXAMPLE ===

<?php

$orgName = "YOUR_ORGANZATION";

$username = "YOUR_USERNAME";

$token = "YOUR_TOKEN";

$key = md5($username);

$cryptAlgo = 'AES-256-CFB';

$iv = mb_substr(base64_decode($token), 0, 16, '8bit');

$secret = base64_encode($iv.openssl_encrypt($token, $cryptAlgo, $key, 0, $iv));

date_default_timezone_set('UTC');

$current_time = date('c');

$nonce = md5(rand(), true);

$base64_nonce = base64_encode($nonce);

$password_digest = base64_encode(sha1($nonce . $current_time . $secret, true));

$header = "UsernameToken Username=\"$username\",".

"PasswordDigest=\"$password_digest\",".

"Nonce=\"$base64_nonce\",".

"Created=\"$current_time\",".

"Organization=\"$orgName\"";

echo $header;

?>

=== PHP EXAMPLE : END ===

The following Javascript script demonstrates how to generate a WSSE header. This code can be easily tested using Postman ([login to view URL]).

=== JAVASCRIPT SAMPLE ===

var moment = require('moment');

var username = "YOUR_USERNAME",

orgName = "YOUR_ORGANZATION",

token = "YOUR_TOKEN",

key = [login to view URL](username).toString(),

iv = atob(token).substring(0, 16).toString([login to view URL]),

encrypted,

secret,

created,

nonce,

base64Nonce,

passwordDigest,

utf8iv = [login to view URL](iv),

utf8key = [login to view URL](key),

utf8token = [login to view URL](token);

encrypted = [login to view URL](utf8token, utf8key, {

iv: utf8iv,

mode: [login to view URL],

padding: [login to view URL]

});

secret = btoa(iv + encrypted);

created = moment().utc().format();

created = [login to view URL](0, [login to view URL] - 1) + '+00:00';

nonce = [login to view URL]() * 32767 + '0';

nonce = [login to view URL](nonce).toString();

var stringToSha1 = nonce + created + secret;

var sha1Temp = [login to view URL](stringToSha1, {

asBytes: true

});

base64Nonce = btoa(nonce);

passwordDigest = [login to view URL](sha1Temp);

header = `UsernameToken Username="${username}",PasswordDigest="${passwordDigest}", Nonce="${base64Nonce}", Created="${created}", Organization="${orgName}"`;

=== JAVASCRIPT SAMPLE : END ===

Taidot: Python

Näytä lisää: zeep github, zeep python, python soap client example, python requests, best python soap client, python zeep examples, python soap library, python soap client wsdl, api calls sharepoint helpdesk template, need python tutoring, api calls, iphone xml api calls, trackit api calls, api calls magento, python library parse wikipedia xml, ebay api calls limit, ebay api calls daily, twitter api calls, api calls net, api calls youtube wordpress

Tietoa työnantajasta:
( 2 arvostelua ) Chateauguay, Canada

Projektin tunnus: #17852473

Myönnetty käyttäjälle:

yodebublr

Hey there, Python developer here. This looks like an awesome task to complete. WSSE headers should be appended to a request right? So according to your points: 1- A code library that customers can integrate into Lisää

$330 CAD 10 päivässä
(6 Arvostelua)
2.5

16 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

whistiti

Hi there. I just read your project and i am quite interested in the challenge. You need to develop a python version of your API but you need it with support with oracle's WSSE headers. It's cool. I can do that good and Lisää

$450 CAD 5 päivässä
(9 arvostelua)
6.4
gangabass

I can provide you Python version of your PHP (or Javascript) code (with unit tests to confirm the code is working as expected) in couple of days. Also I'll provide you documentation how to use it.

$300 CAD 2 päivässä
(156 arvostelua)
6.5
bianyunzhi95

Nice to meet you. I've read your project description carefully and I can do exactly what you want. I am a heavily experienced Python developer with strong backgrounds in Web Architecture. You can consult my reviews. Lisää

$555 CAD 10 päivässä
(33 arvostelua)
5.6
leemilun

Hi, Dear. Thank your for your posting. I've read your post carefully. I'm Python Expert. We could discuss more details by chatting. Regards. Gao M.

$500 CAD 10 päivässä
(19 arvostelua)
5.3
yongjin818

Dear I am an expert in web scraping. In before, I developed 400+ spiders using scrapy, php, selenium. For example, I scraped data for Many products informations from these sites(ex: ebay, amazon, welivv, [login to view URL], e Lisää

$277 CAD 10 päivässä
(34 arvostelua)
5.4
sky930320

Hello, Dear. Nice to meet you. I am python developer and I have full experiences in python. Plz check my portfolio then you will know my python skill and projects and will choose me. Please contact me and discuss m Lisää

$555 CAD 10 päivässä
(9 arvostelua)
5.2
TenStar718

Hello i'm python expert. i can make api convert php to python with output same result. Please discuss detail on chat. Thanks.

$1111 CAD 10 päivässä
(4 arvostelua)
4.8
polarjin2017

Hello? How are you> I have good skills in this field.s so I can help you fi you want. Hope to work with yoiu. I

$277 CAD 3 päivässä
(12 arvostelua)
4.7
lightingdavid

Hello. I have good skills in Python and i'm interest to your project. Contact me please. Thanks.....................................

$500 CAD 10 päivässä
(4 arvostelua)
3.6
kbizsoft

Hello Sir! Greetings of the day!! I have read your job description, you need an expert C/C++ or Python developer to write a Unix service that will enable us to Encrypt PII (Personal Information) from our applicatio Lisää

$555 CAD 10 päivässä
(0 arvostelua)
0.0
mattyseltz

I just recently completed a 900-hour course in web application design and development at a local business school here in New York. Javascript, Java and Python were part of the curriculum. As you have already provided Lisää

$750 CAD 10 päivässä
(0 arvostelua)
0.0
suryashankarm

I have extensive experience in developing restful apis and writing clients for them. As I am managing the backend of a major ecommerce site in India, I have very good experience in writing modular code which will scale Lisää

$272 CAD 7 päivässä
(0 arvostelua)
0.0
apachisolutions

Apachi solutions (PVT) Ltd is an IT based solution provider company work from last 15 years. Our offices are located in U.k , U.S.A, Dubai, and Pakistan. We have strong portfolio and having big name in market. we provi Lisää

$833 CAD 10 päivässä
(0 arvostelua)
0.0
limillion819

Hello sir. I am very interested in your proposal. I can instantly help you with your starting project with a successful completion. As a professional python developer, I ensure for a perfect ongoing project. You wi Lisää

$555 CAD 5 päivässä
(0 arvostelua)
0.0
justdotweaks

Hello, Services we can provide: 1. Web site design and Development in PHP 2. Developing website in PHP Frameworks (i.e. CodeIgniter, CakePHP, Zend, and Yii) and more! 3. CMS based solutions (i.e. Wordpress, Jooml Lisää

$493 CAD 10 päivässä
(0 arvostelua)
0.0