DEV Community

Cover image for SAML SSO: The Missing Piece in Your Next.js App's Authentication Puzzle 🧩

SAML SSO: The Missing Piece in Your Next.js App's Authentication Puzzle 🧩

Nathan Tarbert on September 19, 2023

Find out how to complete the picture for a seamless login Table of Contents TL;DR A Brief Description of SSO Authentication vs Authori...
Collapse
 
anthonymanzo profile image
Anthony Manzo

I've managed to create an SSO connection now (as a service with a self hosted instance of boxyhq on vercel one-click :) and I'm digging into some new challenges with using NextJS App router and auth v5. I'm trying to port this code and am having some challenges. Before I ask a specific question, is this possible and has anyone here done it yet?

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Hey Anthony, I'm tagging Sama from BoxyHQ to help you out.
@caloique

Collapse
 
caloique profile image
Sama

Thanks Nathan!

Hey Anthony, it is great to hear that you got BoxyHQ set up and that the Vercel 1-Click worked for you. We would be happy to help you trouble shoot the challenges you are running into, but it would be easiest to do so through our BoxyHQ Discord community. You can join us there using the following URL: discord.boxyhq.com - Once you have joined feel free to tag me and we can take it from there.

Thread Thread
 
anthonymanzo profile image
Anthony Manzo

Thanks Sama, I just tagged you in #general, I'm @atonyman

Collapse
 
kalpeshbhalekar profile image
Kalpesh Bhalekar

Super informative for such a technical subject!

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Thank you @kalpeshbhalekar

Collapse
 
srbhr profile image
Saurabh Rai

Really cool article Nathan! I'm glad people are also discussing and diving deep into SSO and SAML. We really need more of these 🔥 articles.

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Thank you @srbhr! I really appreciate the support.

Collapse
 
anthonymanzo profile image
Anthony Manzo

Question, do you need to sign-up for BoxyHQ's SaaS product to use this repo?

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Hi Anthony, BoxyHQ is free and open source.
I'm not an employee so I tagged Sama from BoxyHQ to fully answer that question.

ATTN: @caloique

Collapse
 
caloique profile image
Sama

Thanks, Nathan!

Hey Anthony, you don't have to sign up for BoxyHQ's SaaS to access our products. While you can do so, you also have the option to visit our GitHub and self-host for free or opt for our premium self-hosted service. Happy to help you with the integration if needed 🤙

Thread Thread
 
nathan_tarbert profile image
Nathan Tarbert

Thanks for picking this up Sama!

Collapse
 
jobenjada profile image
Johannes

love to see Boxy here more often! :))

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Thanks, @jobenjada, for the support.

We are huge fans of Formbricks as well so it's mutual.

Collapse
 
geduldig profile image
geduldig

How does one make this work with SAML IdP initiated login?

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Hi @geduldig, let me tag @caloique who can get you the correct answer.

Collapse
 
deepakprab profile image
Deepak Prabhakara
Thread Thread
 
nathan_tarbert profile image
Nathan Tarbert

You're welcome @deepakprab

Collapse
 
deepakprab profile image
Deepak Prabhakara

This example is a good starting place - github.com/boxyhq/jackson-examples..., specifically
github.com/boxyhq/jackson-examples... which outlines how the IdP initiated login can be supported.

Collapse
 
thevinitgupta profile image
Vinit Gupta

Really detailed and great explanations Nathan 🔥
And yes

Saml Jackson 🙏🙏

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Thanks @thevinitgupta!
I really appreciate your feedback :)

Collapse
 
emmacode profile image
Emmanuel

Second time reading this article. Well detailed
Thanks, Nathan.

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

Wow, thanks so much for the amazing feedback @emmacode.
I hope it's clear and concise!

Collapse
 
danidoesthings profile image
Dani K

This is both clear and thorough, thank you for taking the time to write it!

Collapse
 
nathan_tarbert profile image
Nathan Tarbert

That's really great to hear @danidoesthings, thank you for the feedback!