Skip to content

Commit edc99ef

Browse files
committed
feat: show user-auth provisioners
1 parent 5246f8d commit edc99ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

enterprise/coderd/provisionerkeys.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,11 @@ func (api *API) provisionerKeyDaemons(rw http.ResponseWriter, r *http.Request) {
147147

148148
pkDaemons := []codersdk.ProvisionerKeyDaemons{}
149149
for _, key := range sdkKeys {
150-
// currently we exclude user-auth from this list
150+
// Currently the user-auth key orgID is hardcoded to the default org.
151+
// This will be changed when we update the `user-auth` keys to be
152+
// directly tied to a user ID.
151153
if key.ID.String() == codersdk.ProvisionerKeyIDUserAuth {
152-
continue
154+
key.OrganizationID = organization.ID
153155
}
154156
daemons := []codersdk.ProvisionerDaemon{}
155157
for _, daemon := range recentDaemons {

0 commit comments

Comments
 (0)