Sorry, you need to enable JavaScript to visit this website.

You are here

Authentication Error

8 posts / 0 new
Last post

John's picture
by John

Authentication Error
Getting the following when run the sample auth code from your https://github.com/telstra/MessagingAPI-v2/blob/master/Getting%20Started.md.     {"fault":{"faultstring":"Unable to identify proxy for host: tapi_secure and url: /v1/oauth/token","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}  

Steve's picture
by Steve

Having the same problem.
Having the same problem. Did you find a solution?  

Steve's picture
by Steve

My Solution
curl --trace-ascii - --no-alpn -X POST -H 'Content-Type: application/x-www-form-urlencoded' \   -d 'grant_type=client_credentials&client_id='$CONSUMER_KEY'&client_secret='$CONSUMER_SECRET'&scope=NSMS' \   'https://sapi.telstra.com/v1/oauth/token'  

J's picture
by J

I am getting a 500 int server
I am getting a 500 int server error. Can you please update the documentation? Thanks

David's picture
by David

Use this URL for oauth
Good pick up on this documentation bug. We've now fixed this in this link;https://github.com/telstra/MessagingAPI-v2/blob/master/Getting%20Started.md To get a token for oauth API, use this URL;  https://sapi.telstra.com/v1/oauth/token thanks, The T.DEV Team

Steve's picture
by Steve

I get the following when
I get the following when using the curl command. "ALPN, server did not agree to a protocol" Any ideas? *   Trying 52.62.77.226... * Connected to sapi.telstra.com (52.62.77.226) port 443 (#0) * found 148 certificates in /etc/ssl/certs/ca-certificates.crt * found 604 certificates in /etc/ssl/certs * ALPN, offering http/1.1 * SSL connection using TLS1.2 / ECDHE_RSA_AES_256_GCM_SHA384 *      server certificate verification OK *      server certificate status verification SKIPPED *      common name: sapi.telstra.com (matched) *      server certificate expiration date OK *      server certificate activation date OK *      certificate public key: RSA *      certificate version: #3 *      subject: C=AU,ST=Victoria,L=Melbourne,O=Telstra Corporation Limited,OU=Program Services PM Practice,CN=sapi.telstra.com *      start date: Thu, 27 Jul 2017 03:06:15 GMT *      expire date: Fri, 27 Jul 2018 03:06:11 GMT *      issuer: C=BM,O=QuoVadis Limited,CN=QuoVadis Global SSL ICA G2 *      compression: NULL * ALPN, server did not agree to a protocol > POST /v1/oauth/token HTTP/1.1 > Host: sapi.telstra.com > User-Agent: curl/7.47.0 > Accept: */* > Content-Type: application/x-www-form-urlencoded > Content-Length: 94 > * upload completely sent off: 94 out of 94 bytes < HTTP/1.1 401 Unauthorized < Date: Fri, 06 Oct 2017 00:06:25 GMT < Content-Type: application/json; charset=UTF-8 < Content-Length: 29 < Connection: keep-alive < Access-Control-Allow-Origin: * < Strict-Transport-Security: max-age=31536000; includeSubDomains; < Server: Apigee Router < * Connection #0 to host sapi.telstra.com left intact { "error": "invalid_client" }steve@ubuntu1:/tmp$

Steve's picture
by Steve

"ALPN, server did not agree to a protocol"
Solution add --no-alpn
Log in or register to post comments