Skip to content

How to Install luci-sso

This guide describes how to install the luci-sso package and its required dependencies on your OpenWrt router.


1. Choose a Crypto Backend

luci-sso requires a native crypto bridge to handle secure tokens. Use mbedTLS unless you have a reason not to — it is lightweight and already present on most OpenWrt systems. Use wolfSSL as an alternative lightweight option, or OpenSSL if the router already uses it for other services such as VPNs.


2. Install the Package

Choose your preferred method below to install the .ipk file.

  1. Log in to your router's LuCI web interface.
  2. Navigate to System -> Software.

LuCI interface showing the Software page with the 'Update lists...' and 'Upload Package...' buttons highlighted

  1. Click Update lists... to refresh package information.
  2. Click Upload Package... and select your local luci-sso file.
  3. Installation: When prompted, confirm the installation.
  4. Backend: If luci-sso-crypto-mbedtls is not automatically installed, search for it in the Filter box and install it manually.
  1. Upload the Package: Copy the .ipk file to your router (e.g., via scp). If you used the devenv build, the path will look like this:
    scp -O bin/lib/<ARCH>/<VERSION>/packages/luci-sso*.ipk root@192.168.1.1:/tmp/
    
  2. Install via opkg: Run the following commands on the router:
    opkg update
    opkg install /tmp/luci-sso*.ipk
    
  3. Verify Backend: By default, opkg will attempt to pull in luci-sso-crypto-mbedtls. To use a different one:
    opkg install luci-sso-crypto-wolfssl
    

3. Verify the Installation

After installing, check that the luci-sso service is responsive and active.

Navigate to the following URL in your browser: https://192.168.1.1/cgi-bin/luci-sso?action=enabled

It should return a JSON response: {"enabled": true}.

You can simulate a web request directly from the SSH terminal to verify the service is alive:

# On the router
QUERY_STRING="action=enabled" /www/cgi-bin/luci-sso

Expected Output:

Status: 200 OK
Content-Type: application/json

{"enabled": true}


Next Steps

Configure luci-sso with an identity provider:

If you already know which provider you are using, go directly to the How-to Guides for provider-specific configuration.