You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/GETTING_STARTED.md
+64Lines changed: 64 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -453,6 +453,70 @@ $ step ca renew site.crt site.key
453
453
error renewing certificate: Unauthorized
454
454
```
455
455
456
+
## Leverage G-Suite's OAuth OIDC as authenticate personal certificates for users
457
+
458
+
To authenticate users with the CA you can leverage services that expose OAuth OpenID
459
+
Connect identity providers. One of the most common provider and the one we'll use in
460
+
this example is G-Suite.
461
+
462
+
Navigate to the Google APIs developer console and pick a suitable project from the
463
+
top navbar's dropdown.
464
+
465
+

466
+
467
+
In the masthead navigation click **Credentials** (key symbol) and then "OAuth consent
468
+
screen" from the subnav. Fill out naming details, all mandatory fields, and decide if
469
+
your app is of type **Public** or **Internal**. Internal will make sure the access scope
470
+
is bound to your G-Suite organization. **Publi** will let anybody with a Google Account
471
+
log in, incl. `gmail.com` accounts.
472
+
473
+
Move back to **Credentials** on the subnav and choose "OAuth client ID" from the
474
+
**Create credentials** dropdown. Since OIDC will be used from the `step CLI` pick **Other**
475
+
from the available options and pick a name (e.g. **Step CLI**).
476
+
477
+

478
+
479
+
On successful completion, a confirmation modal with both `clientID` and `clientSecret` will
480
+
be presented. Please note that the `clientSecret` will allow applications access to the configured
481
+
OAuth consent screen. However, it will not allow direct authentication of users without their own
482
+
MfA credentials per account.
483
+
484
+

485
+
486
+
Now using `clientID` and `clientSecret` run following command to add G-Suite as a provisioner to
487
+
`step certificates`. Please see [`step ca provisioner add`](https://smallstep.com/docs/cli/ca/provisioner/add/)'s docs for all available configuration options and descriptions.
488
+
489
+
```bash
490
+
$ step ca provisioner add Google --type oidc --ca-config $(step path)/config/ca.json \
0 commit comments