FuelSDK-Python icon indicating copy to clipboard operation
FuelSDK-Python copied to clipboard

oauth2 support?

Open kamado-tanjiro-usa opened this issue 6 years ago • 2 comments

Hi there, doesn't look like it supports oauth 2, and in fact it's adding legacy=1 unnecessarily? legacyString = "?legacy=1"
if legacyString not in self.auth_url:
self.auth_url = self.auth_url.strip()
self.auth_url = self.auth_url + legacyString

On top of that, it's not providing 'grant_type'

It'll be nice if you guys can provide an update to the SDK so we can use it as an abstract layer over the SOAP part of the API

Thanks!

kamado-tanjiro-usa avatar Apr 16 '19 06:04 kamado-tanjiro-usa

for auth I"m seeing

            payload = {'clientId' : self.client_id, 'clientSecret' : self.client_secret, 'refreshToken' : self.refreshKey, 'accessType': 'offline'}

there is no grant_type

so when'll we get support for v2?

kamado-tanjiro-usa avatar Apr 16 '19 06:04 kamado-tanjiro-usa

line 201

kamado-tanjiro-usa avatar Apr 16 '19 06:04 kamado-tanjiro-usa