Step 6: Join from a tunneler
In this step, alice and bob each add the network by URL and sign in to the IdP in the browser the tunneler opens.
When the tunneler asks how to enroll, pick User session. A user session needs only the URL and an IdP sign-in, and the same URL works on every device the user has.
The other choice, Device certificate, signs in to the IdP once. The tunneler then creates a key and certificate on that device, and uses the certificate from then on. That identity is bound to one device: enrolling a second device needs an administrator, and invalidates the first enrollment.
Join
Video of alice adding the network by URL and
bob adding the network by URL with Ziti Desktop Edge.
Windows
In Ziti Desktop Edge for Windows 2.11.1.0 and later, the user picks With URL in Add Identity and enters the controller URL. On 2.11.2.9 and later, a user on a network that requires multi-factor authentication (MFA) is walked into MFA setup right after adding the identity.
For the full Windows walkthrough, see By URL.
Linux
These steps were tested with ziti-edge-tunnel 1.18.7.
On Linux, ziti-edge-tunnel does the same from the command line. Install it from the
Linux packages. With the tunneler running, the user adds the network by URL.
--enroll-to-mode token is the User session choice: the controller creates the identity at sign-in. The command
returns the IdP URL to open in a browser on the same machine, because the IdP redirects to http://localhost:20314:
sudo ziti-edge-tunnel add \
-i alice \
-u https://ctrl.example.com:1280 \
--enroll-to-mode token
These commands talk to the running tunneler over a socket only the ziti group can open. To run them without
sudo, add the user to that group with sudo usermod -aG ziti $USER, then sign in again.
A user session needs a second sign-in to connect, and another one each time the tunneler restarts. This command returns the IdP URL to open in a browser:
sudo ziti-edge-tunnel ext-jwt-login \
-i /opt/openziti/etc/identities/alice.json \
-p acme-idp
On a second device, leave out --enroll-to-mode. The identity already exists, and --enroll-to-mode token fails
with ENROLLMENT_IDENTITY_ALREADY_ENROLLED. The error shows only in the tunneler log, because add still reports
success.
Check access
Open each service in a browser on each user's device:
| User | http://eng-wiki.acme.ziti | http://hr-portal.acme.ziti |
|---|---|---|
alice | Engineering Wiki, served by acme-eng-wiki | Doesn't load |
bob | Doesn't load | HR Portal, served by acme-hr-portal |
Done when
- The tunneler shows each identity, signed in
aliceandbobeach reach only the service in the Check access table