# Is it possible to implement SSO with SAML using Next.js?

**URL:** <https://devforum.okta.com/t/is-it-possible-to-implement-sso-with-saml-using-next-js/30472>\
**Category:** SAML\
**Created:** [September 9, 2024, 8:58am UTC](https://devforum.okta.com/t/is-it-possible-to-implement-sso-with-saml-using-next-js/30472 "2024-09-09T08:58:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud-Mlhc](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@Arnaud-Mlhc](https://devforum.okta.com/u/Arnaud-Mlhc)\
**Post date:** [September 9, 2024, 8:58am UTC](https://devforum.okta.com/t/is-it-possible-to-implement-sso-with-saml-using-next-js/30472/1 "2024-09-09T08:58:58Z")

</div>

I’m working as a software Engineer and I’m writing to you regarding the okta login plugin. I’m developing a website in Next.js framework and I want to ask you what do you recommend in terms of security between the SAML login and OIDC considering that according to the Okta documentation only the OIDC is supported for a Next.js project.

Is the custom solution the only solution ? In terms of security, isn’t it less reliable than an OIDC authentification ? Do you have any examples of SSO SAML login using Next.js?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![nicole](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@nicole](https://devforum.okta.com/u/nicole)\
**Post date:** [September 11, 2024, 8:46pm UTC](https://devforum.okta.com/t/is-it-possible-to-implement-sso-with-saml-using-next-js/30472/2 "2024-09-11T20:46:57Z")

</div>

Whether or not to use SAML or OIDC depends on the use case, [this goes over this](https://www.okta.com/identity-101/whats-the-difference-between-oauth-openid-connect-and-saml/) in better detail.

Okta doesn’t have any examples for SAML with next.js, any solution that supports saml would indeed need to be custom, and we don’t have any examples. But OIDC is supported, as you said and we do have [this example](https://github.com/oktadev/okta-nextjs-typescript-example) for OIDC.

---

<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:** [October 11, 2024, 8:47pm UTC](https://devforum.okta.com/t/is-it-possible-to-implement-sso-with-saml-using-next-js/30472/3 "2024-10-11T20:47:17Z")

</div>

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