Overview
OkYouIn is a self-hosted authentication and multi-factor authentication server. VPN gateways, network devices, web applications, your own back ends and Windows computers hand it a sign-in; OkYouIn checks who the user is, applies your access policy, asks for a second factor when the policy says so, and answers with a decision — ok, you’re in — plus the attributes the application needs.
It runs entirely on your own hardware: a virtual appliance, an offline installer ISO, or a set of Docker containers on a Linux host you already run. Nothing about a sign-in leaves your network to be decided, and the license is an offline signed file — there is no phone-home.
What OkYouIn does
Section titled “What OkYouIn does”| Area | What you get |
|---|---|
| Sign-in protocols | RADIUS for VPNs and network gear (PAP, MS-CHAPv2, challenge/response, accounting), OpenID Connect and SAML 2.0 single sign-on on one branded sign-in page, the Verify API for your own applications, and a Windows logon agent for console, RDP and unlock |
| Users | Local users and groups, or users synchronised from Active Directory, OpenLDAP, FreeIPA, Google Workspace Secure LDAP, a generic LDAP server, or Microsoft Entra ID |
| Second factors | TOTP authenticator apps, e-mail code or Approve/Deny link, Telegram, and OkYouIn’s own Web Push app with passkey approval and number matching — no app store needed |
| Policy | One global, ordered policy (application, group, network, country, time, validity) and per-application rules that decide whether MFA is asked and which attributes are returned |
| Visibility | One Access log for every protocol, an audit log, alerts, and forwarding of audit events and sign-in journals to syslog / SIEM |
| Operations | Encrypted configuration backups, in-place updates from a release bundle, a diagnostic archive for support, and an optional two-node high-availability cluster |
Components
Section titled “Components”An OkYouIn server is a small set of containers managed by one operations
command, ./okyouin, in the installation directory:
| Component | Role |
|---|---|
| web | nginx: serves the administration console, the SSO portal (OIDC provider, SAML identity provider), the Windows agent API and the Web Push approval pages over HTTPS |
| api | the application itself: policy, users, directories, MFA, the console’s REST API, background jobs |
| radius | the RADIUS front end that receives Access-Requests and Accounting-Requests from your devices |
| winbind | joins an Active Directory domain, for MS-CHAPv2 sign-ins of domain users |
| stun | a small UDP responder used by the optional Web Push UDP check |
| postgres | PostgreSQL, the only place state is kept |
Every secret OkYouIn stores — directory bind passwords, RADIUS secrets, TOTP seeds, TLS and signing keys — is encrypted with a master key that the installer generates on the host. Backups are encrypted with the same key. Keep a copy of it off the server (see Backup & restore).
How a sign-in flows
Section titled “How a sign-in flows”Whatever the protocol, every sign-in goes through the same steps:
- A request arrives. A VPN gateway sends a RADIUS Access-Request, a browser is redirected to the SSO page by an OIDC or SAML application, your back end calls the Verify API, or the Windows agent asks on behalf of a logon.
- It is matched to an application. Each device, SSO client or API caller is registered as an application, usually created from one of the built-in templates.
- The global policy decides allow or deny. The ordered rules of the policy are walked top to bottom — application, who (users and groups), source network, country, time and validity window — and the first matching rule wins. If nothing matches, the answer is deny.
- The application’s own rules decide the details. Whether a second factor is required, and which attributes go back: RADIUS reply attributes, OIDC claims, SAML attributes or API attributes.
- The user proves who they are. The password is checked against the local account or the directory, and the user answers the second factor they enrolled — a code, an e-mail link, a Telegram message or a push on their phone.
- OkYouIn answers. Access-Accept or Access-Reject, an OIDC token, a signed
SAML assertion, or an
allow/denyfrom the Verify API. - The decision is recorded. Every decision lands in the Access log with the user, application, client address, country, result and reason — and can be forwarded to your SIEM (Logs, SIEM & alerts).
The policy tester in the console (Access ▸ Policies ▸ Policy Tester) shows this path for a made-up request, rule by rule, before you rely on it.
Ways to install
Section titled “Ways to install”| Option | Best for | Page |
|---|---|---|
| Virtual appliance (OVA for VMware, QCOW2 for KVM / Proxmox) | The fastest start: import a VM, answer a short wizard | Install: virtual appliance |
| Offline installer ISO | Bare metal or any hypervisor, with no internet at all | Install: offline ISO |
| Install script on your own Linux host | Hosts you already manage, with Docker | Install on your own Linux host |
All three end with the same installation: the same containers, the same
./okyouin command, the same console. Start with the
requirements.