# Guidance for SAML vs OIDC

**URL:** <https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412>\
**Category:** SAML\
**Created:** [March 7, 2019, 9:17am UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412 "2019-03-07T09:17:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brang](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@brang](https://devforum.okta.com/u/brang)\
**Post date:** [March 7, 2019, 9:17am UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412/1 "2019-03-07T09:17:41Z")

</div>

Hi,

I am trying to find a good source of information for when to use SAML vs OIDC with OKTA.  
Can you point me to something in the docs where I can read what is/isn’t supported with both scenarios?

Thx in advance.

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [March 7, 2019, 9:28am UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412/2 "2019-03-07T09:28:44Z")

</div>

Hi @brang

When using SAML, you are sending an assertion containing the user and/or group attributes to a service provider which then evaluates the details and logs in the user.

When using OIDC, you are requesting specific details from Okta through scopes which sends afterwards the JWT tokens to the service provider. This gives a more granular approach, as you can request only specific details for each OIDC application.

Here are a few references in the documentation to set-up an application that uses either of the methods

- [Setting up a SAML application](https://developer.okta.com/standards/SAML/setting_up_a_saml_application_in_okta)
- [Setting up an OIDC application with a particular flow](https://developer.okta.com/authentication-guide/implementing-authentication/)

---

<div class="post-metadata">

**Author:** ![brang](https://avatars.discourse-cdn.com/v4/letter/b/919ad9/32.png) [@brang](https://devforum.okta.com/u/brang)\
**Post date:** [March 7, 2019, 9:42am UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412/3 "2019-03-07T09:42:32Z")

</div>

Hi @dragos,

Can I use SAML for authenticating service-to-service? There are 2 scenarios there:

- with user context - so after OKTA SAML redirect have been done, my code is running in the frontend web app and I have a user context (ClaimsIdentity in .NET) - is it possible to pass the SAML assertions back when calling a web service for example (SOAP Header/JWT?)?
- without a user context - I have a service that needs to do some background processing without user context, still it needs to call other services that I want to authenticate with - is this scenario supported with SAML?

thx in advance

---

<div class="post-metadata">

**Author:** ![dragos](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/dragos/32/1313_2.png) [@dragos](https://devforum.okta.com/u/dragos)\
**Post date:** [March 7, 2019, 10:25am UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412/4 "2019-03-07T10:25:04Z")

</div>

Hi @brang

Unfortunately we do not support this SAML scenario in Okta. The best way to achieve the use-cases would be by using OIDC.

---

<div class="post-metadata">

**Author:** ![Govner](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/govner/32/1099_2.png) [@Govner](https://devforum.okta.com/u/Govner)\
**Post date:** [March 11, 2019, 12:11pm UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412/5 "2019-03-11T12:11:49Z")

</div>

OAuth client credentials flow should be used: [https://developer.okta.com/authentication-guide/implementing-authentication/client-creds](https://developer.okta.com/authentication-guide/implementing-authentication/client-creds)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 17, 2024, 7:49pm UTC](https://devforum.okta.com/t/guidance-for-saml-vs-oidc/4412/6 "2024-01-17T19:49:30Z")

</div>

Closed on January 17, 2024, 7:49pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
