Home icon

Achieving Single-Sign-On Agentic access to SAP with AWS for SAP MCP Server

SAP Blog



This article explains how to achieve single sign-on agentic access to SAP using AWS for SAP MCP Server with Microsoft Entra ID and On-Behalf-Of (OBO) token exchange, enabling AI agents to access SAP while preserving individual user identity and authorization.

  • Full identity propagation carries each user's identity through authentication to SAP, enabling per-user authorization and audit logging instead of shared service accounts
  • On-Behalf-Of token exchange (RFC 8693) exchanges user tokens for downstream tokens scoped to SAP without requiring second login prompts
  • Architecture uses three Entra ID app registrations: Amazon Quick client, inbound resource app, and outbound SAP access app
  • Implementation involves creating Entra ID apps, configuring permission chains, deploying MCP Server via CloudFormation, and setting up SAP OIDC trust with email-based user mapping
  • Key design principle: OBO client credentials must match the token audience to prevent authentication failures
  • SAP Security Audit Log records actions against individual users, not service accounts, with no shared SAP credentials stored

This solution delivers secure, per-user AI agent access to SAP with full audit trails, least-privilege enforcement, and no shared credentials.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

May 29
2026
Building Agentic Enterprises on AWS with the AWS for SAP MCP Server on Amazon Bedrock AgentCore
Aug 20
2026
AWS Partner Central agents MCP Server now supports OAuth with AWS Sign-In
Apr 29
2026
Announcing AWS For SAP Management MCP Server — Manage Your SAP Applications on AWS Using AI
May 4
2026
General availability of AWS for SAP MCP Server in Amazon Bedrock AgentCore

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.