Read more at projects.onthejourney.online/projects/oktatoentra-web.

TL;DR: OktaToEntra started as a PowerShell module. It’s grown into a self-hosted web app - a FastAPI backend, a Next.js frontend, and a migration planner that tracks every app, owner, and readiness signal in one place. It’s deployable today and going through QA; the source stays private for now, with open-sourcing planned.


Why a web app

The PowerShell module was built to answer one question: which apps do we have in Okta, who owns them, and what order do we migrate them in? It’s good at that - discovery, usage analytics, lifecycle tracking - but it’s a console tool. Handing it to a project manager, a business owner, or anyone who isn’t comfortable in a terminal was never really on the table.

The web app covers the same ground with a browser UI instead: connect Okta and Entra once, then plan, assign, and track the migration as a team. Development on the PowerShell module has stopped in favor of this; the module stays public and functional for anyone who wants the scriptable version.

It’s self-hosted by design - Okta and Entra credentials never leave the environment that owns them.


The dashboard

Dashboard showing application/user/group counts, migration progress, and sync status

The dashboard is the “where do things stand” view: app, user, and group counts pulled straight from Okta; a migration progress bar broken out by status (Complete, Not Migrate, To Do, Investigate); and a Sync Status panel showing when each data source last ran.

The Migration Readiness score below it is deliberately simple - two dimensions, evenly weighted:

  • App Owners Assigned - the percentage of apps with a business owner on record
  • Migration Planning Started - the percentage of apps that have moved off “not started”

No vanity metric here - it’s just those two numbers, averaged. The flags underneath it are the more useful part: apps with no owner, apps with zero users worth decommissioning instead of migrating. That second one has probably saved more work than the score itself.


Planning, per app

Migration planning table with status, tags, sign-on method, and point of contact columns

This is where the actual planning happens - one row per app, with status, tags, sign-on method, and point of contact all editable inline. The three charts up top (by status, by protocol type, top 10 by usage) are there so a stalled migration is visible at a glance rather than buried in a spreadsheet column.

Filters run on status, protocol type (SAML, OIDC, SWA, Bookmark, Browser Plugin, and a few more), and sign-on method, so a PM can slice “everything still Not Migrate that uses shared credentials” in two clicks instead of an export.

Per-app detail

App detail panel showing usage stats, migration status dropdown, point of contact, and tags

Clicking into an app opens the full record: 90-day usage (logins and unique users, so “is anyone still using this” isn’t a guess), risk level, Entra provisioning state once it’s been created, and a notes field for anything that doesn’t fit a dropdown. Migration status, point of contact, and tags all live here too - the same fields as the planning table, just focused on one app at a time.

Tags

Manage Tags modal with colour-coded tags and app counts

Tags are free-form and colour-coded, with a live count of how many apps carry each one. Useful for anything that cuts across the status/protocol axes already in the table - effort level, criticality, which team owns the credential, whatever the migration actually needs tracked that the schema doesn’t have a column for.


Connecting Okta and Entra

Okta and Entra connection settings, both showing Connected

This is the step most likely to trip up a first-time run, so the setup guides live inside the app’s Settings page rather than in a separate doc.

Okta is read-only, and scoped. The recommended connection is an Okta OAuth API service app: you generate a key pair in the app, paste the public key into Okta, and the private key never leaves the server. It needs four read scopes (okta.apps.read, okta.users.read, okta.groups.read, okta.logs.read) and the Read-Only Administrator role. A plain API token still works as a fallback, with a caveat worth knowing: an Okta token inherits every permission of the admin who created it and can’t be scoped, so create it while signed in as a Read-Only Administrator, never a Super Admin.

Entra gets two separate app registrations, on purpose.

  • A provisioning app makes the app-only Graph calls: creating app tiles, and matching users and groups. It’s held to least-privilege permissions - Application.ReadWrite.OwnedBy, for instance, means it can only manage apps this tool created. Settings shows which permissions are granted and flags any that are over-privileged.
  • An SSO app signs your team in with Microsoft. It holds only the delegated openid profile email permissions, and the tool rejects it if it finds application permissions on it, so the sign-in app stays sign-in only.

Either app can authenticate with a certificate (generated on the server, with only the public half ever shown) or a client secret.

One permission is deliberately optional: AppRoleAssignment.ReadWrite.All, which lets a push assign groups to the new apps automatically. It’s powerful enough to be effectively tenant-admin, so the app works without it - pushes still create the app and list the groups to assign by hand. The suggested pattern is to grant it for a push wave and remove it afterwards.


Under the hood

  • Backend: FastAPI (Python), SQLAlchemy ORM, SQLite in WAL mode so sync jobs can write while the UI keeps reading. Schema changes go through Alembic migrations - twenty-one of them as of this writing, which is its own honest record of how much the data model has grown since the first cut. Before applying one, the backend copies the SQLite file to data/backups/ and keeps the last ten.
  • Frontend: Next.js (App Router) with Tailwind and shadcn/ui.
  • Credentials: Fernet (AES-128-CBC with an HMAC-SHA256 integrity check), with the key derived from a server-side secret. Session signing and credential encryption use separate keys derived from that secret with HKDF, so neither can stand in for the other. Credentials are never stored in plaintext or logged.
  • Access: the session lives in an httpOnly, SameSite=Lax cookie that JavaScript can’t read, with a CSRF header required on writes. Passwords are 12+ characters with account lockout after repeated failures, and invite and reset links are stored only as hashes. A one-time setup token printed in the backend log stops anyone else on the network from claiming the first admin account. An audit log records sign-ins, role and credential changes, and Entra provisioning actions.
  • Sync: background jobs run inside the FastAPI process itself - no Redis or Celery queue for this version. Simpler to self-host, at the cost of not horizontally scaling sync, which is a fine trade for a tool one team runs against one tenant.
  • Tests: a pytest suite (auth, inventory, sync, settings, push, security) and CI workflows for tests and container publishing. GitHub Actions runs the tests on every push to main and every pull request, alongside dependency audits (pip-audit, npm audit), a frontend typecheck and a build, with Dependabot keeping dependencies current - same as any project I’d call more than a script.

The whole thing ships as a Docker Compose stack - one container for the API, one for the frontend, a bind-mounted SQLite file for data that survives a redeploy. The API port isn’t published at all: the browser only talks to the frontend, which proxies /api and /auth through to it, and the frontend binds to localhost unless you say otherwise. Both containers run as non-root with no-new-privileges set and all Linux capabilities dropped.


Where it stands

The app is at a deployable state and is currently going through further testing and QA before I’d call it done. Most of the recent work has gone into security hardening - the least-privilege permissions, separate sign-in app and audit log above. The source is private for now; the plan is to open it up so other admins can run their own instance the same way. If that’s useful to you before it’s public, the OktaToEntra PowerShell module is the place to start today.