You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to add oauth support for Concur . This provider gives a xml response for get access token call, but currently our oauth-response-parser supports json and url encoded formats. I am passing the format parameter in the concur's conf file. The response from concur is in this format
But after the providers gives a response in xml format oauthd gives the following error
{
"body": {
"<Access_Token>\r\n <Instance_Url>https://www.concursolutions.com/</Instance_Url>\r\n <Token>myAccessToken": "</Token>\r\n <Expiration_date>6/1/2017 12:46:52 PM</Expiration_date>\r\n <Refresh_Token>myRefreshToken</Refresh_Token>\r\n</Access_Token>",
"stack": [
"Error: Error during the 'access_token' step (access_token not found)",
" at OAuth2ResponseParser.OAuthResponseParser._setError (/usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth-response-parser.js:97:20)",
" at /usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth2-response-parser.js:48:35",
" at /usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth-response-parser.js:53:18",
" at OAuth2ResponseParser.OAuthResponseParser.decode (/usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth-response-parser.js:23:16)",
" at OAuth2ResponseParser.OAuthResponseParser.parse (/usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth-response-parser.js:28:19)",
" at OAuth2ResponseParser.parse (/usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth2-response-parser.js:38:51)",
" at Request._callback (/usr/local/lib/node_modules/oauthd/bin/core/oauth/oauth2.js:82:33)",
" at Request.self.callback (/usr/local/lib/node_modules/oauthd/node_modules/request/request.js:198:22)",
" at emitTwo (events.js:87:13)",
" at Request.emit (events.js:172:7)"
]
}
}
Is there any way to solve this by parsing the xml, any solution to get access token for concur using oauthd.
The text was updated successfully, but these errors were encountered:
I am trying to add oauth support for Concur . This provider gives a xml response for get access token call, but currently our oauth-response-parser supports json and url encoded formats. I am passing the format parameter in the concur's conf file. The response from concur is in this format
But after the providers gives a response in xml format oauthd gives the following error
Is there any way to solve this by parsing the xml, any solution to get access token for concur using oauthd.
The text was updated successfully, but these errors were encountered: