By NHI Mgmt Group Editorial TeamDomain: Best PracticesSource: DescopePublished February 27, 2025

TL;DR: Panel app authentication is straightforward to implement with Descope, but the real governance value is in how OIDC, SSO, and role-based access control reduce credential sprawl and centralise policy enforcement, according to Descope. The pattern matters for IAM teams because it shows how application-level login flows still depend on enterprise identity decisions and lifecycle controls.


At a glance

What this is: This is a tutorial on adding authentication, SSO, and role-based access control to a Panel application, with the key finding that federated identity reduces local credential handling.

Why it matters: It matters because IAM teams need to see how application authentication choices affect enterprise control points such as MFA, access policy, and user lifecycle governance.

👉 Read Descope's tutorial on adding authentication and SSO to a Panel app


Context

Panel apps often begin as internal analytics tools, but once they handle business data they need more than a simple login form. The identity problem is not just authentication, it is whether access is anchored to the organisation's IdP, policy engine, and role model rather than to locally managed app accounts.

This tutorial sits squarely in human IAM, not NHI governance. The security question is how to use OIDC, SSO, and role-based access control to keep access consistent across applications while avoiding duplicated credentials and fragmented admin paths.

The article's starting point is typical for enterprise-facing data apps: a developer-built interface that works technically before it is governed properly. That is exactly the stage where identity architecture choices matter most.


Key questions

Q: How should security teams govern SSO across multiple enterprise applications?

A: Treat SSO as a lifecycle and trust problem, not only a login convenience. Security teams should define the identity provider as the source of truth, standardise the attribute set each app receives, and test that onboarding, role changes, and offboarding propagate cleanly across every connected application.

Q: What breaks when access requests depend on manual role changes?

A: Speed and precision break at the same time. Engineers wait for approvals when the role is too narrow, but security loses control when the role is broadened to remove friction. Manual changes also create review debt, because each exception has to be tracked, validated, and eventually removed.

Q: How do you know if federated authentication is working as intended?

A: You should be able to trace a sign-in from the IdP to the application, confirm that the correct scopes were issued, and verify that the right role landed in the right dashboard. If users can authenticate but reach the wrong functions, the federation layer is not governing authorisation cleanly.

Q: Who is accountable when an app grants more access than the IdP intended?

A: Accountability sits with both the application owner and the identity team. The app owner controls the role mapping and session logic, while the identity team controls the claims, groups, and policy posture in the IdP. A failure in either layer can produce over-privilege.


Technical breakdown

How OIDC ties a Panel app to an external identity provider

OpenID Connect adds an identity layer on top of OAuth 2.0, letting the application trust a third-party provider for user authentication while receiving standard claims about the user. In this pattern, Panel redirects the user to the identity provider, exchanges an authorization code for tokens, and then uses user-info and scope data to populate the local session. The important detail is that the application does not own the primary credential ceremony. It relies on externally managed identity proofing and session issuance, which makes identity policy decisions centralised but also means app trust depends on correct endpoint configuration and token handling.

Practical implication: treat OIDC setup as part of the identity architecture, not as a front-end convenience layer.

Why SSO changes access governance for business applications

SSO lets the user authenticate once with a corporate identity provider and reuse that authenticated session across applications. For B2B tools, that means the app inherits enterprise controls such as MFA, conditional access, and account state management instead of creating a separate credential island. The governance value is less about fewer passwords and more about reducing divergent access paths. If the organisation can no longer answer who can sign in through which identity source, SSO becomes a source of ambiguity rather than control.

Practical implication: align every business app to a single authoritative identity source and document the fallback paths.

How role-based access control separates user and admin paths

Role-based access control maps application permissions to identity attributes or group membership, which is how the tutorial keeps the admin dashboard separate from the user dashboard. The model is simple but powerful: authentication proves the user, while authorisation decides what the user can reach. In practice, RBAC becomes fragile when roles are assigned manually, when tenancy rules are inconsistent, or when the application fails to synchronise role changes from the IdP. That is where access drift begins.

Practical implication: tie app roles to governed identity attributes and review role assignment triggers, not just role names.


NHI Mgmt Group analysis

Application login is now an identity governance decision, not a developer afterthought. This tutorial shows how quickly a data application moves from a local authentication pattern to an enterprise identity pattern once SSO, OIDC, and RBAC are introduced. The practical shift is that access control no longer lives only in the app code. It is distributed across the IdP, token scopes, and role mapping rules, which means identity teams should treat application onboarding as part of IAM architecture.

Federated login reduces credential sprawl, but it also concentrates policy failure. When every application trusts the same identity provider, misconfiguration in scopes, callback handling, or tenant mapping can affect more than one app at once. That is the trade-off practitioners need to manage: fewer unmanaged credentials, but a wider blast radius if the federation layer is weak. The right lens is not just usability, it is control centralisation.

Role assignment remains the point where human IAM breaks down most often. The tutorial's admin access step is a reminder that authentication and authorisation are separate governance problems. A user can be fully authenticated and still be over-privileged if the role model is too coarse or role changes are not reflected promptly. That makes lifecycle events, not login mechanics, the real risk boundary.

SSO does not eliminate identity lifecycle work; it makes lifecycle accuracy more visible. If a user leaves, changes teams, or loses admin eligibility, the federation model only works when those changes are reflected in the IdP and downstream app roles. The implication for IAM leads is that application access reviews should focus on role propagation and account state sync, not just password policy.

From our research:

  • 96% of technology professionals identify AI agents as a growing security threat, and 66% believe this risk is immediate, according to AI Agents: The New Attack Surface report.
  • Only 44% have implemented any policies to govern AI agents, leaving most organisations exposed to uncontrolled identity behaviour as automation becomes more capable.
  • For a broader governance lens, read OWASP NHI Top 10 for the controls practitioners should reassess as identity becomes more dynamic.

What this signals

Human IAM programmes should treat SSO integrations as control-plane work, not just application setup. The practical issue is that federated authentication only improves governance when role mapping, session policy, and lifecycle events are consistent across the IdP and the app.

Federation concentration: one identity provider can simplify access and also concentrate failure if scopes, tenant mapping, or callback logic drift. That means onboarding, recertification, and offboarding need to be validated across the federation path, not just in the application.

IAM teams should use this pattern as a trigger to review downstream access reviews and admin-role propagation. If the app cannot prove that role changes from the IdP are reflected quickly and accurately, the federation model is creating confidence without control.


For practitioners

  • Map every application login to an authoritative identity source Inventory which apps use local credentials, which use federation, and which still depend on ad hoc accounts. Prioritise business applications that expose sensitive data or admin functions, and require them to trust the corporate IdP rather than maintain their own identity silo.
  • Separate authentication from authorisation in the app design Use OIDC or SSO to prove user identity, then enforce access through explicit roles, groups, or claims. Document which claims drive admin access, and review whether the application is assuming more privilege than the identity provider actually issued.
  • Review callback URLs, scopes, and token handling together Treat redirect URIs, requested scopes, token lifetime, and refresh behaviour as one control set. Misalignment here can produce broken sign-in flows, stale sessions, or overbroad data access even when the login screen appears to work correctly.
  • Tie role changes to lifecycle events Make sure joiner, mover, and leaver events update application roles and group membership without manual delay. A user who no longer needs admin access should lose it as part of the same governance process that changes their enterprise identity state.

Key takeaways

  • Panel authentication becomes an IAM design choice once it relies on OIDC, SSO, and centralised role control.
  • The main governance risk is not the login flow itself, but drift between identity provider policy and application-level authorisation.
  • Teams should focus on role mapping, lifecycle sync, and session handling to keep federated access trustworthy.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-63, NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the technical controls, while GDPR define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST SP 800-63SP 800-63COIDC-based federation and SSO are central to the article's login model.
NIST CSF 2.0PR.AC-1The article centres on authenticated access and access-path governance.
NIST Zero Trust (SP 800-207)Section 5.4SSO and centralized policy align with zero trust identity verification.
GDPRArt.32The article mentions compliance implications for data-driven applications handling user data.

Ensure authentication and role controls support Art.32 by limiting access and protecting session data.


Key terms

  • OpenID Connect: OpenID Connect is an identity layer built on OAuth 2.0 that lets applications authenticate users with compact tokens and standardised key discovery. It is widely used for modern web, mobile, and API-driven systems because it reduces integration overhead compared with older federation patterns.
  • SSO Gap: An SSO gap is any application or workflow that still requires direct credentials even though the organisation has deployed single sign-on elsewhere. These gaps matter because they create unmanaged access paths that must still be governed, audited, and revoked.
  • Role-Based Access Control: A model that grants permissions by assigning identities to predefined roles. It works well when jobs are stable and access patterns are predictable, but it becomes brittle when exceptions pile up. In practice, role design must stay small enough to audit and broad enough to avoid endless custom variants.
  • Federated Identity: Federated identity lets one organisation trust an external identity provider so a user can access another service without creating a separate account. It simplifies access, but it also expands the trust relationship that must be monitored. Weak federation settings can turn a single compromise into cross-domain access.

What's in the full article

Descope's full tutorial covers the operational detail this post intentionally leaves for the source:

  • Step-by-step Panel configuration for generic OAuth authentication and local development.
  • Exact environment variables, endpoint values, and token settings used in the working implementation.
  • Okta tenant and OIDC setup steps for SSO, including callback configuration and endpoint discovery.
  • Code-level logout wiring and token refresh handling for the sample application.

👉 The full Descope tutorial covers the implementation steps, endpoint values, and code changes in detail.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 16, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org