Trying to get OAuth2 with c# ASP.NET MVC to work
Posted: Fri Mar 17, 2023 9:45 am
I have now working many hours to get something to work with Telldus Live and c# and after many hours i find OAuth2 libryar that i now trying to impelment Telldus Live in to.
I have forked the code and added a TelldusLiveClient code to it, se https://github.com/RickardPettersson/OAuth2
I got so long that i got to login and then accept the application access but then i get this exception:
"OAuth Verification Failed: Verification of signature failed (signature base string was \"POST&http%3A%2F%2Fapi.telldus.com%2Foauth%2FaccessToken&oauth_consumer_key%XXXXXXXXX%26oauth_nonce%XXXXXXXXX%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1419060557%26oauth_token%XXXXXXXXX%26oauth_verifier%XXXXXXXXX%26oauth_version%3D1.0\"). with Array\n(\n [0] => XXXXXXXXX\n [1] => XXXXXXXXX\n [2] => request\n)\n"
I have replaced some stuff with XXXXXXXXX thats why the urls is not like it should.
Do anyone know what the problem can be or someone can help me test it and try to fix it?
I have forked the code and added a TelldusLiveClient code to it, se https://github.com/RickardPettersson/OAuth2
I got so long that i got to login and then accept the application access but then i get this exception:
"OAuth Verification Failed: Verification of signature failed (signature base string was \"POST&http%3A%2F%2Fapi.telldus.com%2Foauth%2FaccessToken&oauth_consumer_key%XXXXXXXXX%26oauth_nonce%XXXXXXXXX%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1419060557%26oauth_token%XXXXXXXXX%26oauth_verifier%XXXXXXXXX%26oauth_version%3D1.0\"). with Array\n(\n [0] => XXXXXXXXX\n [1] => XXXXXXXXX\n [2] => request\n)\n"
I have replaced some stuff with XXXXXXXXX thats why the urls is not like it should.
Do anyone know what the problem can be or someone can help me test it and try to fix it?