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

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

Whether or not to use SAML or OIDC depends on the use case, this goes over this 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 for OIDC.