Received: from mail.netlandish.com (mail.netlandish.com [174.136.98.166]) by code.netlandish.com (Postfix) with ESMTP id ABFA84A7 for <~netlandish/links-dev@lists.code.netlandish.com>; Thu, 11 Sep 2025 00:45:50 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.177; helo=mail-yb1-f177.google.com; envelope-from=peter@netlandish.com; receiver= Authentication-Results: mail.netlandish.com; dkim=pass (1024-bit key; unprotected) header.d=netlandish.com header.i=@netlandish.com header.b=k7Ckq68x Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by mail.netlandish.com (Postfix) with ESMTP id 2EFC91D6464 for <~netlandish/links-dev@lists.code.netlandish.com>; Thu, 11 Sep 2025 00:46:52 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id 3f1490d57ef6-e931c858dbbso84471276.0 for <~netlandish/links-dev@lists.code.netlandish.com>; Wed, 10 Sep 2025 17:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netlandish.com; s=google; t=1757551611; x=1758156411; darn=lists.code.netlandish.com; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9Ma4/H/oM+Je2gR2wY+ze3cFsea9Yh5MwRWAefnV/P0=; b=k7Ckq68xk13lKiHqxoMt9f+jWcRFfRtfmtMym+fn1xlvi9fnjkuy66QPHdFeN5Zbgz /Ns2HtnCCbU3/KTCoaqxB0WjGLwxthICNu9BCB1irU0gDYtl3OPG6Zay646nscNsEET4 1vidBKM6J9MsubAhDYp9w4SGoWQd2JNL3UcZQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757551611; x=1758156411; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9Ma4/H/oM+Je2gR2wY+ze3cFsea9Yh5MwRWAefnV/P0=; b=Dy6MhghHxx3OXOdY4D9+a03pEr8KMNKCvY7myAynfEglnGUjNp3pK8sAgaaSqWKr8T 44l8i8xFuomSnNFMsuUJrxQNlL45L1g0b3prgZnIXSdT4y+zrc5t+LVSFigQV17t2Aoi zZSW8K/BEL6sjbnBQgddvpnElvKxYY1IlVNV5EjPkilvJW1nOc09/GHybmcAv2es0VZK HCTxFEj8nXtVpW51rrMaS/oQ08RSeFNtOEhYP53bqikxvwzqL7jN+CbqudQvHObxgXio FEzzYwxMDWerJ4hvRFAmwd4HIvjaACO7MtT3wE0HA/uEBjt2UvpSzRv+mHycTw2pf3J1 2h1w== X-Gm-Message-State: AOJu0YzajZSyTVDnt2+7eNRdOlzzb+y9MAx3sdnAHKh40YGrr1lXdY6K XnjYW38KHdWXWwXmOY3AZir6F6r+mBtcovPNT7xSRqcUJW7YX/PObh8qJMxPM4FXHWUnMWDJ9Nu gI8qGXLk= X-Gm-Gg: ASbGncsCPKOyRmC/FM8gVPEj52b4qh1JpBr8SYQNqxHVcvbnN2Cx8W94OjLoDGTN15T X5j4NsbnZ/oxhgeduXA6XMVEoQNeOrd+iKV3L4x4bmCFE8IUQOLPvIEmWj86ZoNPnCxB23v6h0B oi1l+40urQPiAZBYLGW/GZurHj64jnKRo8myfdYpB8InlkdKybm+yTRKQNdpgBKpzCjti1DyYkl /qyUA05ItLn7VjByLXm2iHF1ChlJocMmnV+yVgPgFYMHI3IWdu9qcC69I8aWW6t7V66/vGDDE04 qRRWt4tTMP7IO74ruxYL0kK8X2Nff0++9AlgppFU7iTJSymiPL97Licce+qcqmTGi9oPs7Xy48c WgY7pw9jKZgFnqNrsfcVD X-Google-Smtp-Source: AGHT+IEsF/zdCPgBuQM4TWfV81LrLSJJUZz3tr4ntgIMOGCzmeQ0vdP3Ee8cHnVlADdFPiTeN9UVZQ== X-Received: by 2002:a05:6902:1548:b0:e98:a36a:7635 with SMTP id 3f1490d57ef6-e9f66ac3086mr3388441276.12.1757551611132; Wed, 10 Sep 2025 17:46:51 -0700 (PDT) Received: from localhost ([2803:2d60:1118:5ee:9455:3f:9ea4:1005]) by smtp.gmail.com with UTF8SMTPSA id 3f1490d57ef6-ea3cefe1600sm34257276.1.2025.09.10.17.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Sep 2025 17:46:50 -0700 (PDT) From: Peter Sanchez To: ~netlandish/links-dev@lists.code.netlandish.com Cc: Peter Sanchez Subject: [PATCH links] Adding support for expiration date to personal access tokens. Date: Wed, 10 Sep 2025 18:46:46 -0600 Message-ID: <20250911004648.15155-1-peter@netlandish.com> X-Mailer: git-send-email 2.49.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Changelog-added: You can now set a custom expiration date for personal access tokens. Maximum of 10 years. --- go.mod | 2 +- go.sum | 4 ++-- templates/oauth2_add_personal.html | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 7c4c304..f2fd36b 100644 --- a/go.mod +++ b/go.mod @@ -35,7 +35,7 @@ require ( netlandish.com/x/gobwebs-auditlog v0.2.7 netlandish.com/x/gobwebs-formguard v0.2.8 netlandish.com/x/gobwebs-graphql v0.2.8 - netlandish.com/x/gobwebs-oauth2 v0.2.7 + netlandish.com/x/gobwebs-oauth2 v0.2.8 netlandish.com/x/gobwebs-ses-feedback v0.2.8 petersanchez.com/x/carrier v0.2.3 petersanchez.com/x/carrier/ses v0.0.0-20250114214955-7f5d9b835a85 diff --git a/go.sum b/go.sum index f823038..8eacf97 100644 --- a/go.sum +++ b/go.sum @@ -2586,8 +2586,8 @@ netlandish.com/x/gobwebs-formguard v0.2.8 h1:nfnOFdqIWPySDmV08Q+VtUv1tfVCSyMHEnN netlandish.com/x/gobwebs-formguard v0.2.8/go.mod h1:f+oCZbI1nuYdoAGmb0nEpWKMBjl1YjuQt1v6SVqNYzM= netlandish.com/x/gobwebs-graphql v0.2.8 h1:mEOi4h3zZxI2QwD1qj40EnkkLPtaixOC4hQ1dr/Pm9E= netlandish.com/x/gobwebs-graphql v0.2.8/go.mod h1:TEaBNJLBNfcW/Dy0mBzR47t0p4SsZTp2gaHxzn5wo28= -netlandish.com/x/gobwebs-oauth2 v0.2.7 h1:yornq2hquinwGzeCjNDmeFGt2NlnjR985sOnABCFPk4= -netlandish.com/x/gobwebs-oauth2 v0.2.7/go.mod h1:7w3TSD2dd76d6dUSwPECB2TeStOSLmm4b9v5alZd8as= +netlandish.com/x/gobwebs-oauth2 v0.2.8 h1:lvWmgLLqHCX3oP5I9IZPIzljx2CnzmZcB2qEImz8OU8= +netlandish.com/x/gobwebs-oauth2 v0.2.8/go.mod h1:7w3TSD2dd76d6dUSwPECB2TeStOSLmm4b9v5alZd8as= netlandish.com/x/gobwebs-ses-feedback v0.2.8 h1:FIvHeh2YPVl8x1c3KCT7ZdjIxUrn2jql9cLya/a1bYo= netlandish.com/x/gobwebs-ses-feedback v0.2.8/go.mod h1:mn7yq3rcd7URIAWJ+VcNHwJsM/hKkCnAtlSyDwH1Lc0= petersanchez.com/x/carrier v0.2.3 h1:6ScWG2HVFqeqafQp2D9kChNdXYkou4rduzppc3SDYMg= diff --git a/templates/oauth2_add_personal.html b/templates/oauth2_add_personal.html index d4e7963..d37e20d 100644 --- a/templates/oauth2_add_personal.html +++ b/templates/oauth2_add_personal.html @@ -22,6 +22,13 @@

{{ . }}

{{ end }} +
+ + + {{ with .errors.ExpiresOn }} +

{{ . }}

+ {{ end }} +