1 Answers
If you are asking of comparing SAML and OAUTH 2.0 .. Both have different purpose to serve ….
SAML (Security Assertion Markup Language) is an umbrella standard that encompasses profiles, bindings and constructs to achieve Single Sign On (SSO), Federation and Identity Management.
OAuth (Open Authorization) is a standard for authorization of resources. It does not deal with authentication.
If your usecase involves SSO (when at least one actor or participant is an enterprise), then use SAML.
If your usecase involves providing access (temporarily or permanent) to resources (such as accounts, pictures, files etc), then use OAuth.
If you need to provide access to a partner or customer application to your portal, then use SAML.
If your usecase requires a centralized identity source, then use SAML (Identity provider).
If your usecase involves mobile devices, then OAuth2 with some form of Bearer Tokens is appropriate.