Personal Access Tokens for creating Personal VPS Panel

  • Posted on September 11, 2014
  • showcheapAsked by Sucipto

I’m trying to create my personal VPS Control panel to manage my digitalocean account (create, delete, manage, etc). And i’m using Personal Access Tokens (Generated by DO Control Panel) rather than create Developer Application (With Client ID & Secret to get token).

The Question is :

  1. It’s my way is bad idea?
  2. It’s Secure?
  3. How to refresh Personal Access Tokens if the tokens expired (The OAuth Documentation says its will be expire 30 day after issued)

Thanks for answer

NB: I’m sorry if my english is bad :D

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


You only need to refresh tokens generated through the OAuth flow. The personal access token generated in the control panel doesn’t expire unless you revoke it.

If you’re just building something for personal use, using the personal access token is fine. In fact that’s what it’s there for. There’s no need to go through the OAuth dance if it’s just for you. Though if you are building something that others will be using, I’d encourage you to create a Developer Application. It will be a much better experience for your users when authenticating and it allows them finer grained control.

This comment has been deleted