Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

powerup client.isAuthorized() is still returning true after powerup access has been revoked

Pete Williams September 7, 2019

I testing authorisation capabilities for my powerup but have run into difficulties. Having got my powerup authorised for my test user I now want to change the authorisation scope. To do this, I've revoked access to my powerup from my test users settings panel, changed the scope for authorisation and rerun the authorisation setup as suggested in the documentation. The trouble is the powerup api gives every indication that the powerup is already authorised, and as a consequence any attempt to reauthorise does nothing.

Does anyone have advice as to how to solve this problem?

2 answers

0 votes
bentley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2019

I'd also recommend checking out the Trello Developers Community: https://community.developer.atlassian.com/c/trello. This is a great place to ask developer-related questions for Trello.

0 votes
bentley
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2019

@Pete Williams Which method of authorization are you using?

It sounds like you might be using the REST API Client as documented here: https://developers.trello.com/reference#rest-api-client. If so,  you'll want to use `client.clearToken()` to remove the token that you have stored. Documentation for `client.clearToken()` here:  https://developers.trello.com/reference#client-cleartoken.

One thing that the REST API Client doesn't do is regularly ensure that the token that you have stored is still a valid, working token. As you've run into, it is possible for it to hold onto an invalid token for you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events