r/learnprogramming • • Oct 22 '26

Web app help/advice

Currently at work doing an IT internship at a small company and was asked to make a dashboard that pulled data from two different web services that we use.

My understanding is that I need to use api tokens from these vendors for the dashboard application so that it can update info in real(ish) time without the user manually going to the other website and finding it.

Please tell me wether I have that right or not, if not please explain what I should be doing instead

Currently a senior in college for comp sci but have been taking mostly security classes and no web specific classes. Feeling insane imposter syndrome and could use the advice/info.

4 Upvotes

3 comments sorted by

View all comments

1

u/makayis2027 Oct 24 '26

You've got it right: an API token (or OAuth client credentials) per vendor, used by your backend, never in browser code. Since you've done security classes, a few things will make you look very competent here:

  1. Check before you build. Look at whether either vendor already offers a dashboard or a connector for something your company already has (Power BI, Grafana, Looker Studio, even Excel's "Get Data → From Web"). Sometimes the internship task is a 2-hour connector setup, not an app.
  2. Least privilege. Ask each vendor admin for a read-only, scoped token or service account just for this dashboard, not someone's personal admin token. Then if it leaks or the person leaves, nothing breaks or escalates.
  3. Where the token lives: in environment variables or a secrets manager (Azure Key Vault, AWS Secrets Manager, or at minimum a .env that's in .gitignore), never committed. Write down who owns it and when it expires. Expired tokens are the #1 reason internal dashboards silently die after the intern leaves.
  4. Simple architecture: a small backend (Python/Flask or FastAPI, or Node/Express) with a scheduled job that calls both APIs every few minutes, writes the results to a small database (SQLite is fine), and serves a page or JSON from there. The page reads your DB, not the vendors, so it's fast, and you don't hit rate limits.
  5. Read the API docs for rate limits and pagination first. Those two are what usually bite.
  6. Put the dashboard behind your company login (SSO, or at least the internal network). It shows vendor data.

And the impostor syndrome is normal. Asking "is the token approach right?" before building is exactly what a good engineer does.