It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Sep 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: If so,  you'll want to use `client.clearToken()` to remove the token that you have stored. Documentation for `client.clearToken()` here:

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.

0 votes
bentley Atlassian Team Sep 23, 2019

I'd also recommend checking out the Trello Developers Community: This is a great place to ask developer-related questions for Trello.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Trello

Develop a new Habit during Lockdown

If you had to thrive a new habit during a lockdown, what would it be? Trello

1,627 views 15 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you