0

Using Azure AD, I have a .NET Core Web API Controller that has authenticated the user using OAuth2 and I have a JWT Bearer token and a Claims Principal.

Is there any way of using either of these to generate a SAML token so I can call another API, that only supports SAML, on behalf of this user?

2 Answers2

0

AFAIK , currently that is not possible in a on-behalf-of scenario . Similar discussions here and here are for your reference .

Nan Yu
  • 26,101
  • 9
  • 68
  • 148
0

Yes, this is possible and supported scenario by Azure AD v.1 endpoint.

This is supported as non-standard extension of the On-Behalf-Of authorization flow in OAuth2 framework. More details on the concrete implementation by Azure AD v.1 endpoint is documented here.

Of course, your OIDC application must be granted at least "user_impersonation" permission on the SAML integrated app/api in order the On-Behalf-Of flow to work.

This has been supported since almost the beginning in v.1 endpoints.

astaykov
  • 30,768
  • 3
  • 70
  • 86