External Identity Provider + Internal Identity in 1 Web App, is it possible?

Hi All,

is it possible to perform SSO in 1 web app with sample use cases:

  1. Customer direct
  2. Customer coming from partner’s app (external identity)

I’m thinking about using external identity provider for #2.

I’m wondering if it is possible, and how to differentiate between both.

Any advice would be appreciated.
Thank you.