Today's Deep-Dive: Logto
Ep. 405

Today's Deep-Dive: Logto

Episode description

In this episode, we take a deep dive into Logto, an open-source identity and access management platform built to help developers and organizations regain control over one of the most critical layers of modern software: authentication. Starting with the frustration and risk of relying on expensive proprietary login systems from vendors like Auth0, Microsoft, or Google, we explore why authentication is so notoriously difficult to build correctly, and how Logto packages complex protocols like OpenID Connect and OAuth 2.1 into a far more accessible foundation for both startups and enterprise teams.

Along the way, we unpack how Logto handles modern identity challenges, from passwordless login, social sign-in, multi-tenancy, enterprise single sign-on, and role-based access control to machine-to-machine authentication for AI agents and automated services. We also look at the deeper security architecture behind the platform, including Argon2 password hashing, passkeys, SOC 2 Type II compliance, open-source transparency, and regional data isolation for sovereignty and compliance. More than a technical walkthrough, this episode is about digital identity, infrastructure ownership, and what it means to build authentication systems that are secure enough for both humans and the AI-driven networks now emerging around them.

Gain digital sovereignty now and save costs

Let’s have a look at your digital challenges together. What tools are you currently using? Are your processes optimal? How is the state of backups and security updates?

Digital Souvereignty is easily achived with Open Source software (which usually cost way less, too). Our division Safeserver offers hosting, operation and maintenance for countless Free and Open Source tools.

Try it now!

Download transcript (.srt)
0:00

Before we jump into the source material today

0:02

We really need to address this fundamental problem that honestly almost every

0:06

organization rustles with at some point

0:09

Yeah, the sheer cost and well the incredible complexity of secure logins, right?

0:14

Exactly

0:15

And that brings us to the supporter of today's deep dive safe server

0:19

Yeah, if you're building an app or you know managing an organization's digital

0:24

infrastructure right now

0:25

You are probably looking at these incredibly expensive proprietary authentication

0:29

tools. Oh, yeah things like author or

0:32

Microsoft entra Google Cloud identity is another big one, right and safe server

0:37

basically helps you implement really powerful open source

0:40

Alternatives to those massive, you know proprietary systems and why make the switch?

0:45

I mean beyond the massive cost savings, which is huge

0:48

It really comes down to data sovereignty, which is so critical these days

0:52

Exactly when you are dealing with legal and compliance requirements like strict

0:55

data protection email retention

0:57

Financial records and audit trails you really cannot afford to have your users

1:02

identity data

1:03

Just locked away in a vendor's black box. You need to own it, right and safe server

1:08

guys organizations through that entire process

1:10

Yeah from you know that initial consulting phase to figure out exactly what

1:14

architecture you actually need all the way to

1:16

Operating the open source software on highly secure servers located right within

1:21

the EU which solves a ton of headaches for compliance

1:24

Huge headaches you keep control you stay compliant and you stop paying that

1:28

ridiculous enterprise markup

1:30

You can find more information and get started at

1:33

www.safeserver.de

1:36

Because honestly

1:38

Outsourcing your core identity infrastructure to those proprietary giants

1:42

It's just a massive strategic risk and we are seeing a really significant industry

1:46

pivot toward reclaiming that control

1:48

Yeah, and speaking of risks if you're building an app today

1:51

You might have this like massive blind spot as you're probably focusing entirely on

1:56

human users, right?

1:57

People clicking buttons exactly but looking at the trajectory of modern networks

2:01

Non-human AI agents are well, they're likely going to outnumber human users in the

2:07

very near future

2:08

It's not even a question of if but when so true

2:11

So today we're diving into this whole stack of github repositories security white

2:16

papers and developer docs

2:18

centered around an open source authentication and

2:21

Authorization infrastructure called log toe log toe and our goal today is to really

2:26

analyze how modern applications are

2:29

Attempting to secure themselves for both human users and these you know AI agents

2:35

Yeah, and how they do it without forcing developers to become like full-blown cryptographers

2:40

because authentication remains

2:42

The absolute bane of every software developers existence. I mean, it's just a

2:45

nightmare. It really is. Why is that though?

2:48

Well, the friction really comes from the gap between user expectation and technical

2:53

reality

2:53

So a user opens an app they click a button and they just expect to be in right

2:57

compose that right?

2:58

But beneath that single click is this terrifying labyrinth of security protocols

3:03

Yeah

3:04

I want to look at the actual mechanics of that labyrinth because the documentation

3:07

we're looking at frequently cites these protocols

3:10

like OIDC, which is open ID connect and

3:12

Always 2.1. It's a big ones. Yeah, right

3:16

But why are these so painfully difficult for a standard product developer to just

3:21

implement from scratch?

3:22

I mean building an app and then having to build your own authentication system

3:25

It feels like I don't know like opening a local bakery

3:28

But then having to design and forge your own bank vault from scratch just to hold

3:32

the cash register

3:33

That is actually a perfect analogy because it comes down to the catastrophic cost

3:37

of a tiny mistake

3:38

You know OIDC handles the authentication part that basically verifying who the user

3:43

actually is

3:44

Okay, and then oh, I have two point one handles the authorization

3:47

So granting permissions to access certain data but without handing over the actual

3:53

password, right?

3:54

You don't want to just pass passwords around exactly. So when you use these

3:56

protocols, you aren't just sending a username back and forth

3:59

You are generating a cryptographically signed JSON web token or a JWT

4:06

Okay JWT and what happens if the developer, you know

4:11

Just writes the logic for that token incorrectly like a small typo or something

4:15

total compromise like absolute disaster

4:17

We really just from a small error. Oh, yeah

4:19

Let's say a developer accidentally configures their system to accept a token signed

4:25

with the wrong

4:25

Cryptographic algorithm like they confuse a symmetric key for an asymmetric one

4:30

Oh, wow, right a malicious actor can then forge their own digital pass

4:35

Rewrite the payload inside it to say hey

4:38

I'm the administrator and the system will just let them write in that is terrifying.

4:42

It is implementing these industry standard protocols from scratch

4:46

Requires like a really deep understanding of token life cycles key rotation

4:51

Cryptographic validation. It's not for beginners. So looking at the developer docs

4:56

here log toes primary value proposition seems to be just

5:00

You know removing that cryptographic burden entirely going back to the analogy

5:04

It acts as that pre-forged highly secure bank vault exactly developer just drops it

5:09

into their back end and log toe handles

5:11

All the OIDC and o with 2.1 token verification

5:15

Natively that is the core utility right there the developer doesn't have to write

5:19

the intricate logic to validate a web token

5:21

They can just focus on building their actual product rather than you know trying to

5:24

become an identity security expert overnight

5:26

Which is a huge relief right and from a front-end perspective the sources really

5:31

detail how this translates into the user experience, right?

5:33

Yeah, the visual side of it right log to provides these pre-built sign-in flows. So

5:38

you get passwordless entry via email or

5:40

SMS verification codes you have traditional passwords obviously and social sign-ins

5:47

like Google Apple or discord the ones everyone expects

5:50

Yeah, but the feature that really stands out to me in the documentation is this

5:54

multi app omni sign-in experience

5:57

Oh, that is huge. That solves a major psychological friction point for users. How

6:02

so well imagine an

6:03

Organization that has like a web dashboard a mobile app and maybe the community

6:08

forum

6:08

Normally a user might navigate between those platforms and encounter three

6:12

completely different login screens

6:14

Oh, I hate that right because that inconsistency breeds suspicion users wonder if

6:19

they've stumbled onto a phishing site or something

6:22

Oh, okay. Yeah, that makes total sense

6:23

Yeah

6:24

So with the omni sign-in approach the login screen just looks native and consistent

6:28

no matter where the user encounters it exactly

6:30

It's one centralized sign-in flow for every single application in that ecosystem

6:35

Okay, but I want to push back on this omni sign-in idea for a second just based on

6:40

the enterprise use cases mentioned in the sources

6:42

Okay, let's hear it having one unified login screen sounds really great for the

6:46

software provider, right?

6:48

Yeah, but what if that software provider grows and lands this massive corporate

6:53

client?

6:53

Ah the b2b scaling problem, right if I am a large corporation renting space on this

6:59

platform

6:59

I do not want my employees seeing a generic log to a screen. I want my own

7:04

corporate branding

7:06

There's a system like this force a universal look or does it you know allow for?

7:11

Customization at the client level that is a critical distinction to make and the

7:15

documentation actually specifically addresses this through a concept called

7:18

Multi-tenancy multi-tenancy. Yeah log tow does not force a universal look on

7:23

corporate clients

7:24

It is built from the ground up to support business to business or b2b scaling

7:29

Okay, let's unpack the mechanics of that

7:30

How does multi-tenancy actually isolate one client from another think of the

7:35

application as a large?

7:36

Apartment building when you have individual consumer users. They each basically get

7:41

a small isolated apartment

7:43

Okay makes sense, but when you land a corporate client, let's call them business a

7:48

they don't just want one apartment

7:50

They want to rent an entire floor, right?

7:52

They have a whole team exactly and they want the master keys to manage all the

7:56

individual rooms on that floor

7:58

So log toe allows developers to create distinct organizations or tenants within the

8:03

app

8:03

Business a gets its own isolated tenant environment. So they get their own branding

8:08

their own user grouping

8:09

Yep, and most importantly strict data isolation from business B on the floor right

8:14

below them. Got it

8:15

So business a is database queries cannot accidentally like bleed over and expose

8:22

business B's user data

8:24

Precisely, that would be a massive compliance failure and within that isolated

8:28

floor. The corporate client also needs our BAC our BAC

8:31

Which is role-based access control, right? Right? And this is another one of those

8:35

enterprise grade features

8:36

That's just native to lock toe. So under the hood

8:38

How does our BAC actually restrict someone is it literally just a list of names on

8:43

a server? No

8:44

It's much more robust than that our BAC

8:46

Attaches specific permissions to roles and then assigns those roles to users via

8:51

claims in their actual identity token

8:53

Okay, so like a tag on their ID badge basically

8:56

So an intern receives a token with say a read-only claim while a manager receives a

9:01

token with a write and delete claim

9:03

When that intern tries to delete a database the application checks the token

9:08

Sees the missing permission and just blocks the action at the protocol level. That's

9:12

incredibly secure

9:13

It is and lock toe manages all of this logic

9:15

Allowing the corporate client to set strict rules without the software developer

9:20

having to manually code

9:21

You know permission checks for every single user Wow and the sources also highlight

9:25

enterprise SSO

9:27

So single sign-on as the sort of holy grail of b2b software. We are talking about

9:31

integrations with

9:32

semel

9:34

Entra or Okta

9:36

Why do large corporations mandate this so strictly it is entirely about?

9:40

Compliance and the IT department's ability to maintain a single kill switch a kill

9:45

switch

9:45

Yeah, if a corporation has like 5,000 employees the IT department cannot manage

9:51

5,000 separate accounts across 50 different software platforms. It's impossible.

9:56

Yeah, that would be a nightmare

9:57

So they want one centralized identity provider like Okta when an employee leaves

10:02

the company IT just disables their Okta account

10:06

Once oh and that instantly revokes their access to every single app they used

10:10

including yours

10:11

Exactly log toe allows developers to plug directly into these enterprise identity

10:16

providers

10:16

Satisfying those corporate compliance requirements right out of the box. Okay, but

10:20

normally

10:21

Providing features like SAML integration and multi-tenancy that requires enterprise

10:26

level pricing

10:26

But analyzing log toes pricing model here reveals a really interesting strategy the

10:31

first

10:32

50,000 monthly active users are completely free which is wild

10:36

It functions as this massive safety net for growing startup by eliminating the

10:40

upfront cost for those enterprise features

10:42

Developers can architect their platform for B2B scale from day one

10:47

Rather than you know trying to duct tape multi-tenancy onto a consumer app three

10:51

years down the line when they finally land a big contract

10:53

Yeah, buck taping enterprise features is never a good idea never now the

10:57

documentation makes a really sharp pivot here

10:59

Moving away from human users entirely and this brings us back to that blind spot

11:04

We mentioned at the start of the show the AI agents. Yes

11:07

How does an authentication system handle the paradigm shift of the AI era?

11:12

I mean we're scripts microservices and AI models need to securely access data

11:18

Because if our BAC is like giving different employees different colored key cards

11:22

How do we give a key card to a robot assistant who needs to do tasks on our behalf?

11:26

This is where identity infrastructure is currently undergoing a massive evolution

11:31

historically, you know authentication required a screen a keyboard and human eyes

11:35

to solve a KPT CHA or

11:37

Read an SMS code right click all the squares of the crosswalk

11:41

Exactly, but AI agents do not have eyes or smartphones

11:45

So Logto is engineering identity for these non-human entities through machine to

11:50

machine or M2M authentication

11:53

And the documentation

11:55

Mentions the model context protocol or MCP in this specific context. What role does

12:00

that play?

12:00

So MCP is this emerging standard designed to securely connect AI models to external

12:06

tools and private data sources

12:08

Right

12:09

If you deploy an AI assistant and ask it to summarize say a highly confidential

12:14

financial report from your private database

12:16

That AI needs a way to cryptographically prove to the database that it actually has

12:20

the authority to read that file and Logto handles that

12:23

Right Logto natively supports the protocols required for those secure automated

12:28

handshakes and the mechanism they use for this is called

12:30

Personal access tokens or BATs

12:32

How do these differ from a standard login token?

12:35

Think of it this way a standard login is like presenting your passport at a border

12:39

crossing, right?

12:40

The guard has to look at your face to verify. It's really you a personal access

12:44

token is more like a diplomatic pouch

12:45

It skips the face check entirely, but it is strictly limited in scope. You generate

12:51

a PT specifically for your automated pipeline

12:54

It provides clean programmatic access without any messy login screens

12:59

And I assume the major security benefit there is revocation like if the script goes

13:03

rogue or the token is leaked somehow

13:05

You don't have to change a master password for the whole system

13:08

Exactly. You just instantly revoke that specific diplomatic pouch and the AI agent

13:12

loses access immediately

13:14

That is the exact security posture you need for modern micro services. It isolates

13:19

the risk completely

13:20

There is another feature detailed in the sources that sort of bridges this gap

13:24

between human support and secure access and it's called

13:28

impersonation the

13:29

Documentation describes this as a way for customer support teams to log in as an

13:33

end customer

13:34

Yeah, this is a tricky one right because initially that sounds like a massive

13:38

security vulnerability

13:39

How does a system allow an employee to inhabit a user's account without you know

13:44

exposing the users password?

13:46

It uses an audit logged temporary session token. Okay, break that down for me

13:50

So when a user reports a broken dashboard the support representative doesn't ask

13:55

for their password

13:56

They never see the password

13:58

Instead the rep uses their own high-level admin credentials to request an impersonation

14:03

token from Logto

14:05

Okay, and then the system generates a temporary highly restricted session that

14:10

basically mirrors the users view and crucially

14:13

Every single action the support rep takes while impersonating that user is

14:18

permanently logged in the audit trail

14:20

Oh under the support reps name not the users exactly it provides the visibility

14:24

needed for troubleshooting

14:25

While maintaining perfect cryptographic accountability that is brilliant

14:30

Okay, so we're looking at an impressive list of capabilities here multi-tenancy

14:33

machine-to-machine tokens support impersonation

14:37

But the practical reality for developer is you know implementation right building

14:41

the thing

14:42

Yeah

14:42

if Logto is open source

14:44

Does a developer just download a massive repository of complex code from github and

14:49

just hope they can compile it without breaking their servers

14:51

Well, the open-source ecosystem has thankfully evolved significantly past that

14:56

point

14:56

Logto has really mitigated the integration friction by providing these pre-built

15:00

software development kits or SDKs

15:03

For over 30 different frameworks 30 Wow

15:07

Yeah

15:07

So whether a team is building the front end in reactor view and the back end in

15:12

Python go iOS Android node

15:14

There's a native SDK designed to just handle the API calls to Logto

15:20

Effortlessly and the developer experience detailed in the launch options is also

15:23

really revealing

15:24

They highlight a git pod launch option alongside a local Docker compose setup for

15:29

someone new to this

15:30

Why would a developer choose one over the other it really comes down to environment

15:35

variables and speed a local Docker?

15:37

Environment requires you to actually download the containers and run them on your

15:41

own machine, which takes time, right?

15:43

It is highly reproducible

15:45

But it relies on your local hardware git pod on the other hand spins up the entire

15:48

open source environment in the cloud instantly

15:51

Oh, so you don't install anything locally. No a developer can click a link

15:55

completely bypass all local configuration issues and

15:59

Just start testing the authentication flows in their browser within seconds that

16:03

speed of deployment is impressive, but

16:05

We have to analyze the actual defensive architecture here if we return to that bank

16:11

vault analogy

16:11

We really need to know how thick the walls are absolutely because open source code

16:16

is inherently transparent, right?

16:18

Which means hackers can study it just as easily as developers

16:21

Well transparency is actually a defensive advantage in cryptography because it

16:24

allows

16:25

Thousands of independent security researchers to audit the code. They find the bugs

16:30

before the bad guys do that's true

16:32

But beyond the code itself log toe undergoes rigorous institutional auditing

16:37

They are soc2 type 2 certified. Okay. What does that certification actually entail?

16:42

It's just like a security checklist a company fills out once a year and says we're

16:46

good

16:46

Not at all. So c2 type I is a checklist that proves you have security policies in

16:51

place on a specific day

16:52

so c2 type 2 is a grueling continuous audit an

16:56

Independent auditor basically monitors the company's operational practices over an

17:00

extended period often six months to a year

17:03

Wow, just watching everything they do everything to prove that they actually follow

17:07

their strict security privacy and data access procedures every single day

17:12

Achieving it is incredibly difficult for a startup to do alone. Okay, that gives a

17:17

lot of confidence

17:17

Yeah, and delving into the actual cryptography the white papers specify that log to

17:23

uses argon 2 for password hashing

17:25

Yep, argon 2. How does argon 2 protect a database if it actually gets stolen?

17:30

Well when a secure system saves a password it never saves the plain text obviously

17:34

it runs the password through a mathematical hash function to create

17:37

Scramble text right if a hacker steals the database. They usually deploy massive

17:42

arrays of graphics processing units GPUs to guess

17:44

Millions of passwords a second just hoping to find the text that matches the hash

17:49

root force

17:49

Exactly. Yeah, argon 2 is designed to defeat this specific hardware attack

17:54

How does it bottle like a GPU though like GPUs are incredibly fast

17:57

They are but argon 2 defeats them by utilizing memory hard functions

18:02

See GPUs have thousands of processing cores allowing them to calculate incredibly

18:08

fast, but they have very little local memory

18:10

Right argon 2 forces the hashing process to consume a massive amount of RAM

18:16

By demanding memory rather than just processing speed argon 2 starves the GPU

18:22

Slowing the hackers brute-force attack to an absolute crawl. That is so clever

18:27

It essentially turns the attackers own hardware architecture against them

18:31

Exactly and for organizations that want to eliminate passwords entirely the

18:35

documentation also highlights support for a web often

18:38

Which is the underlying technology for paskies right paskies are everywhere now

18:41

because web often represents the gold standard for multi-factor authentication

18:44

Instead of relying on a shared secret like a password it uses public key cryptography

18:49

tied to the biometric sensors on your actual device

18:52

Okay, wait, so when I use my fingerprint or face ID to log in my biometric data isn't

18:57

being sent to log toe server

18:58

Correct. Your biometric data never ever leaves the secure on play of your phone or

19:03

laptop. Oh, thank goodness. Yeah

19:05

Your device uses that biometric check locally to unlock a private cryptographic key

19:11

Which then signs a challenge sent by the server the server only holds the public

19:16

key which is useless to a hacker

19:18

So even if the server is compromised, they don't have your face or fingerprint

19:21

exactly it fundamentally eliminates the risk of phishing and credential stuffing

19:25

The final aspect of the architecture detailed in the sources really brings us back

19:30

to the deployment models

19:31

While log to is open source and can be self hosted

19:34

They also offer a fully managed log to cloud version right for teams that don't

19:39

want to manage servers and this highlights a critical

19:41

Geographical feature regarding data isolation across distinct regions, right?

19:46

Yes, and this is a vital component of international compliance log to cloud

19:50

operates environments in the EU the US

19:53

Australia and Japan

19:54

Meaning a European company can ensure their users identity data literally never

19:59

crosses the Atlantic never it stays in Europe

20:02

Fully encrypted at the database level with TLS encryption securing the data while

20:06

it is in transit

20:07

It allows an organization to really leverage the transparency and flexibility of an

20:12

open source architecture

20:14

While still meeting the rigorous data sovereignty demands of an enterprise

20:18

environment exactly

20:19

However, it is important to note that maintaining self-hosted identity

20:23

infrastructure does require

20:25

Dedicated engineering resources to manage updates and security patches right? You

20:30

can't just set it and forget it

20:31

No log toe removes the cryptographic complexity, but the infrastructure still

20:36

demands operational diligence

20:38

Synthesizing the source material here log toe presents a genuinely compelling

20:42

approach to modern identity management

20:44

It essentially democratizes access to enterprise-grade security tools

20:49

It really does developers are handed this pre-built cryptographic vault that scales

20:53

from you know

20:54

A simple consumer app all the way to a massive multi-tenant b2b platform with

20:58

single sign on and most importantly

21:01

It bridges the gap into the AI frontier providing the machine to machine protocols

21:06

necessary to secure non-human agents

21:08

Which is huge. What's the broader implication for the industry in your view?

21:12

I think the broader implication is that developers no longer have to compromise

21:15

between speed-to-market

21:17

Operational cost and deep security they can finally just rely on vetted

21:21

infrastructure as we conclude this analysis

21:24

I want to leave you with a provocative thought regarding that AI frontier

21:28

We established that autonomous scripts AI models and micro services will soon

21:32

completely dominate network traffic

21:35

No doubt about it. So when a network is populated almost entirely by non-human

21:39

agents performing automated tasks

21:42

How will our foundational definition of digital identity have to evolve?

21:46

Will the security frameworks of tomorrow have to assess not just the cryptographic

21:50

signature of an AI?

21:52

But the behavioral intent of its actions

21:54

Honestly, that is the defining security question for the next decade of

21:58

decentralized computing as you navigate that rapidly changing landscape

22:02

You really don't have to be tethered to the expensive proprietary giants of the

22:06

past and that brings us back to our sponsor safe server

22:09

by transitioning to a robust open-source solution like log tow

22:13

Organizations businesses and associations gain incredible cost savings while

22:18

permanently escaping vendor lock-in, which is the dream, right?

22:22

Whether your priority is strict data protection

22:24

establishing immutable audit trails or simply retaining absolute sovereignty over

22:29

your user data

22:30

Safe server is equipped to facilitate that entire transition

22:34

You can commission them for specialized consulting to determine if log tow or you

22:38

know

22:39

Another open-source alternative is the exact right architectural fit for your

22:43

organization's specific needs

22:44

From that very first strategy conversation the full-scale operation on highly

22:48

secure servers right within the EU

22:50

They manage the complexity so you can just focus on your core product visit

22:55

www.safeserver.de to explore your options the next time you seamlessly log into an

23:01

application take a moment to appreciate the immense invisible

23:03

to build it yourself. Thanks for joining us on this deep dive

23:03

to build it yourself. Thanks for joining us on this deep dive