Question

Personal Access Tokens for creating Personal VPS Panel

  • Posted September 11, 2014

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

Subscribe
Share
First Header Second Header
Content Cell Content Cell
Content Cell Content Cell1. Item 1
  1. Item 2
  2. Item 3

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

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.

Hi!

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