SAML 2.0 Bearer Assertion Flow for OAuth 2.0

How can I get an OAuth2 (OIDC) token for a SAML assertion?