Skip to content
Work Expertise Services CV Portfolio Integrations Laravel packages Blog Sign in Get in touch

Who gets in, and with what

Signing in looks like the simplest screen in an application and is the hardest piece underneath. It decides who your customer is, what they may do, and what happens on the day they lose their phone.

Two sides of the same question

On the outside are your customers. They do not want to invent yet another password, and every extra field on the sign-in screen costs you a few of them. A button that lets them use the account they already have saves drop-offs, forgotten passwords and work for whoever runs the helpdesk.

On the inside are your staff. They have no choice, and there it is about something else: that someone starting can get in everywhere on day one, that someone leaving can get in nowhere on day one, and that you can demonstrate it. That is the same technology with a different assignment, and in practice the second side is forgotten until an audit asks about it.

In between sits the third category, often described nowhere: the machines. An integration, a script, an assistant that may act in your application. They sign in too, often with the account of whoever once set it up, and that is usually the first thing to stop when that person changes role.

What I built on it

Six pieces between a sign-in screen and a rights model that can still be explained after three years.

Signing in with an account you already have

Google, Apple, Microsoft or Facebook as a sign-in button, with oauth and OpenID Connect underneath. Signing in and linking an existing account run along the same path, so someone who first chose a password can simply press the button later.

Work accounts through Entra ID

Staff signing in to a bespoke application with their company account, with the groups from the tenant as the basis for what they may do. Joining and leaving then go through one place instead of through every system separately.

Rights inside the application

A rights model that goes further than one role per user: a right per action, roles as bundles, and a screen showing why someone has access to something. As a package, so every project runs the same rules.

Two-step verification and passkeys

A code from an authenticator app, or signing in with a fingerprint or face. Passkeys remove the password entirely, which takes out the whole category of reused passwords at once.

Device management with Intune

Laptops and phones that set themselves up at the first sign-in, with the settings, the software and the disk encryption that belong with them. A device that goes missing is then a wipe and not an incident.

A key per application

Machines and assistants do not sign in with the account of a member of staff who changes team tomorrow, but with a key or token of their own, with the rights that belong to it and no more. Revoking is then a button and not a search party.

How it is put together

Five things you had better decide up front, because afterwards you cannot touch them without touching accounts that are already in use.

The email address is not an identity

Two sign-in routes can return the same email address, and an email address can change owner. Whoever links the account to that opens the door for whoever gets that address later. The key is the number the provider supplies; the email address is a detail that comes with it.

Apple gives the name only once

At the first sign-in the name comes along, never again after that, and the email address may be a forwarding address Apple made up. Whoever does not store it that first time has an account without a name and no way to get one after all. That is not a bug but the design.

One account with several ways in

The same person signs in with Google today and with a password next month. That should be one account with two sign-in routes, and not two accounts. That asks for a table beside the user, and a moment where you ask whether it really is the same person.

Two-step verification without an escape hatch is a risk

Anyone who loses their device has to be able to go somewhere, and that somewhere is exactly where an attacker will try. Recovery codes that work once, a second factor that works differently from the first, and a procedure carried out by a human: that matters as much as the verification itself.

A token that keeps working after signing in

Signing in gives you a token, and that token is often also the key to whatever has to happen afterwards: reading a calendar, reading a mailbox, fetching a file. That means refreshing in time, storing it safely, and cleaning up neatly when someone revokes the connection.

What it does not solve

A sign-in button from a large provider moves the trust, it does not remove it. If that service is down, nobody gets in who only has that route. Keeping a second route open is therefore not a luxury but a condition, and that goes for your own staff too.

And arranging access is not security. It says who may come in, not what that person can then do, and not what happens when something goes wrong. That second piece is under continuity and recovery.

Do you want such a button on your own application

Or do you want to put the other side in order, who can reach what in your 365 environment? That is an hour of conversation to find out where you stand. Send a message.

The story of the sign-in button is worked out under signing in with Google, Apple and Facebook, and the workplace side under Microsoft 365.