OAuth token with Credentials object?


#1

instead of retrieving the user name and password, is there a way I can have the credentials object get the username and password from the user, then give me an oauth token for use in REST api calls? I have an api key to put in my script, but can’t see how to get an oauth token.

this is for the trello api.

thanks


#2

Credentials are just for storing account configuration and authentication values. They do not support any OAuth flows.

Not familiar with Trello’s API specifically, but most APIs offer a persistent developer token which can be stored in Credentials and used to construct requests.

Exposing additional APIs as wrappers with OAuth support, like Drafts has for the Twitter API, is planned.


#3

thanks. I will see if I can get a persistent token from the api somehow.