[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get Token/OAuth (Concur Solutions)



   Karissa,
   You did not tell us, what you tried and what response you got. How
   shall we help you, if all we know is "I've tried many things, but never
   get back this response."? For example it was helpful if we knew whether
   or not you are familiar with the HTTP_POINT_ADDL_HEADER exit point.
   Otherwise we do not know whether adding the "X-ConsumerKey" http header
   is the problem or not.
   So as a starting point I put together an example showing how to specify
   BASIC authentication credentials and how to add the "X-ConsumerKey"
   header. That example does not return the expected access token but ends
   with a "403 Forbidden" error. But I assume that it would work if I or
   you specified the proper user name and password as well as the right
   X-Consumer key value. At least the request matches the request of the
   Concur example:
      GET /net2/oauth2/accesstoken.ashx HTTP/1.1
      Host: [1]www.concursolutions.com
      User-Agent: http-api/1.24
      Authorization: Basic
   am9obl9kZXZlbG90bWFpbC5jb206VHJhdmVsJkV4cGVuc2UkMjAxMg==
      X-ConsumerKey: eZByXv2X41cJlC21pSVvRi
   Regards,
   Thomas.
   ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx schrieb am 13.06.2013 21:52:04:
   > Von: kstaubin@xxxxxxxxxxxxxx
   > An: ftpapi@xxxxxxxxxxxxxxxxxxxxxx,
   > Datum: 11.07.2013 02:52
   > Betreff: Get Token/OAuth (Concur Solutions)
   > Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   >
   > I am trying to use HTTPAPI to use Web Services with Concur Solutions.
    I
   > currently am using HTTPAPI in another application, and have been for
   years,
   > so it is set up.  I've talked with Concur technical support, but I
   don't
   > think we totally understand each other.  This is what I was told to
   use:
   >
   >
   >
   > Please use the following values in their associated attributes for
   your web
   > request:
   >
   >
   >
   > HTTP Method:                   GET
   >
   > URL:
   > [2]https://www.concursolutions.com/net2/oauth2/accesstoken.ashx
   >
   > Header:                                Authorization: Basic {Base64
   encoded
   > LoginId:Password]
   >
   > Additional Header:           X-ConsumerKey: {Consumer Key}
   >
   >
   >
   >
   >
   > This is an example from the website:
   >
   >
   >
   > The developer calls the Get Token using Native Flow function:
   >
   >
   >
   > GET [3]https://www.concursolutions.com/net2/oauth2/accesstoken.ashx
   HTTP 1.1
   >  Authorization: Basic
   > am9obl9kZXZlbG90bWFpbC5jb206VHJhdmVsJkV4cGVuc2UkMjAxMg==
   >
   > X-ConsumerKey: eZByXv2X41cJlC21pSVvRi
   >
   >
   >
   > The Response is:
   >
   > HTTP/1.1 200 OK
   >
   > Content Length: 200
   >
   >
   >
   >     <?xml version="1.0"?>
   >
   >     <Access_Token>
   >
   >         <Token>fdjhk2382kwkajsklwe8i3932kslswl</Token>
   >
   >         <Expiration_date>3/30/2013 2:19:10 PM</Expiration_date>
   >
   >         <Refresh_Token>8ew$sefhj7s62ns94376nsjd62s</Refresh_Token>
   >
   >     </Access_Token>
   >
   >
   >
   >
   >
   > I've tried many things, but never get back this response.  Any help
   or
   > insight would be appreciated.
   >
   >
   >
   > Thanks
   >
   > Karissa
   >
   >
   -----------------------------------------------------------------------
   > This is the FTPAPI mailing list.  To unsubscribe, please go to:
   > [4]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------

   --
   IMPORTANT NOTICE:
   This email is confidential, may be legally privileged, and is for the
   intended recipient only. Access, disclosure, copying, distribution, or
   reliance on any of it by anyone else is prohibited and may be a
   criminal
   offence. Please delete if obtained in error and email confirmation to
   the sender.

References

   1. file://localhost/tmp/www.concursolutions.com
   2. https://www.concursolutions.com/net2/oauth2/accesstoken.ashx
   3. https://www.concursolutions.com/net2/oauth2/accesstoken.ashx
   4. http://www.scottklement.com/mailman/listinfo/ftpapi

Attachment: CONCUR.rpgle
Description: Binary data

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------