Back to search

Iowa State University

Optimizing OAuth 2.0 BFF for enhanced security, user experience, and developer experience in the enterprise: Motivation and strategy

Abstract

dc:description.abstract

Over the past decade, JavaScript-based single-page application frameworks, including Meta's React.js, Google's Angular, and Vue.js, have become a popular technology choice for enterprise web application development teams. Increasingly, enterprise teams are architecting applications built upon these frameworks to utilize OAuth 2.0 with Open ID Connect to integrate with commercial Identity as a Service, Identity and Access Management, and Single Sign-On solutions. The security guarantees of OAuth 2.0 depend upon a client's secure handling and management of bearer tokens. Two conditions create significant uncertainty concerning a browser-based application's ability to meet this demand. First, modern browsers lack a storage facility with the necessary characteristics to protect tokens from abuse or exfiltration via cross-site scripting. Second, substantial portions of the codebase in a typical modern enterprise web application comprise third-party code and components sourced via a supply chain that remains a known attack-vector for cross-site scripting vulnerabilities. Presently, the lowest risk approach for integrating OAuth 2.0 with browser-based single-page applications is to employ a dedicated server-side component as the OAuth 2.0 client, allowing tokens to be retrieved through a secure backchannel and stored in a more highly trusted server-side execution environment. A correlation of the user's authenticated session between the server backend and the browser application is maintained using the much more solid, mature, and well-understood HTTP cookie mechanism. Such an architecture is described and referred to as the OAuth 2.0 Backend for Frontend (BFF) Architecture in a draft IETF specification. The draft specification provides a high-level description and depiction of the components and flows involved. This work's primary focus and contribution is a proposed theoretical extension addressing specific aspects of the OAuth 2.0 BFF Architecture described in the draft IETF OAuth 2.0 for Browser-based Apps specification. The proposed extension addresses critical and difficult-to-manage concerns that the draft leaves for implementing teams to handle. This research aims to assist researchers and practitioners in producing secure and robust browser-based OAuth 2.0 implementations with a solid user and developer experience.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
thesis
Discipline thesis:degree_discipline
Computer engineering
Department dc:contributor.department
Department of Electrical and Computer Engineering
Grantor
Iowa State University
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Duncan, William
Advisors dc:contributor.advisor
  • Jacobson, Doug
  • Trajcevski, Goce
  • Rursch, Julie

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Iowa State University
Base URL
dr.lib.iastate.edu/server/oai/request
Last updated
2026-11-18
Source record
OAI-PMH GetRecord
related terms
citation

Duncan, William. Optimizing OAuth 2.0 BFF for enhanced security, user experience, and developer experience in the enterprise: Motivation and strategy. thesis thesis, Iowa State University, 2024. https://doi.org/10.31274/td-20240617-155