Provisioning autentication

Provisioning autentication SearchSearch
Author Message
Leandro Alves
New member
Username: Leandrocalves

Post Number: 1
Registered: 01-2012
Posted on Thursday, January 05, 2012 - 07:34 pm:   

Good afternoon, I am using the following parameters to add in my web system:
http://upsolution.dyndns.org:8800/provision?user=myadmin&password=mypassadmin&Ty pe=SMS&AdminAction=Add&Fullname=LuizGarcia&Name=luiz&Password=000&EnableWebLogin =Yes&CreditsToAdd=5
but the password that this recording is for the User Password aministrador, is how to resolve this issue?

Sorry my english =)
Leandro Alves
New member
Username: Leandrocalves

Post Number: 2
Registered: 01-2012
Posted on Friday, January 06, 2012 - 11:43 am:   

Can anyone help me?
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3703
Registered: 08-2008
Posted on Friday, January 06, 2012 - 12:50 pm:   

Hi Leandro,

I checked this article: http://www.nowsms.com/provisioning-sms-and-mmsc-user-accounts-via-http

It says "The admin username and password must be supplied in the HTTP GET request within an “Authorization:” header using HTTP Basic Authentication."

I am surprised that it almost works with the URL parameters for admin username/password, but as you mention it will not support the password parameter in this way.

I will ask our engineers to add support for thus in an update.

However, right now, the only solution is to use HTTP Basic Authentication.

--
Des
NowSMS Support
Leandro Alves
New member
Username: Leandrocalves

Post Number: 3
Registered: 01-2012
Posted on Friday, January 06, 2012 - 01:11 pm:   

I understand, but how does this authentication header? I could spend a code example that I put on my page?

Thank you for your attention.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3706
Registered: 08-2008
Posted on Friday, January 06, 2012 - 02:50 pm:   

The Authorization: header is not part of the URL, so it can't be included in a URL link.

How you generate it depends on what language you are working with. Some more background info on HTTP BASIC authentication can be found here: http://en.m.wikipedia.org/wiki/Basic_access_authentication
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3713
Registered: 08-2008
Posted on Tuesday, January 10, 2012 - 10:18 pm:   

Hi Leandro,

We've posted a preliminary update to address this issue at http://www.nowsms.com/download/nowsms20120110.zip.

To address this issue, if authentication is included in the URL provisioning request, the user password is parsed from the second instance of the "password=" parameter.

--
Des
NowSMS Support
Leandro Alves
New member
Username: Leandrocalves

Post Number: 4
Registered: 01-2012
Posted on Wednesday, January 11, 2012 - 01:35 pm:   

He just right here, right now is working very well, thank you for the attention and commitment!