ワンクリックで
cognito-from-hubitat
Call AWS Cognito InitiateAuth correctly from a Hubitat driver and log failures without leaking secrets.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Call AWS Cognito InitiateAuth correctly from a Hubitat driver and log failures without leaking secrets.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Pattern for keeping a rolling temperature-trend sample buffer in Hubitat state, computing slope over a configurable window, and classifying rising/falling/steady/unknown.
Implement Tuya Local v3.3 Groovy drivers on Hubitat using rawSocket, AES-128-ECB, queued retries, and defensive frame parsing.
Use Hubitat async HTTP plus a request queue to authenticate with Cognito, cache tokens in state, refresh proactively, and replay a single 401-failed request.
When two agents produce overlapping skills in one session, consolidate by merging unique content into the highest-confidence existing skill.
Never let cached-state dedup bypass session validity in cloud-backed Hubitat drivers.
Standard guard pattern for async HTTP response callbacks in Hubitat drivers
| name | cognito-from-hubitat |
| description | Call AWS Cognito InitiateAuth correctly from a Hubitat driver and log failures without leaking secrets. |
| domain | auth |
| confidence | low |
| source | earned |
Use this when a Hubitat Groovy driver talks directly to AWS Cognito User Pools over asynchttpPost, especially for USER_PASSWORD_AUTH login and REFRESH_TOKEN_AUTH token renewal.
POST https://cognito-idp.<region>.amazonaws.com/ with Content-Type: application/x-amz-json-1.1.X-Amz-Target: AWSCognitoIdentityProviderService.InitiateAuth for direct InitiateAuth calls.AuthFlow, ClientId, and AuthParameters in PascalCase.USERNAME, PASSWORD, and REFRESH_TOKEN.Content-Type, X-Amz-Target, body shape, resp.hasError, resp.status, resp.errorMessage, resp.headers, resp.data, and resp.errorJson.status=408, inspect resp.hasError() and resp.errorMessage before assuming Cognito returned a true HTTP 408 response.drivers/gemstone-lights/gemstone-lights.groovy
buildCognitoParamsbuildCognitoCallbackDatacognitoAuthCallbacklogCognitoAuthFailureX-Amz-Target: AmazonCognitoIdentityProvider.InitiateAuthContent-Type: application/jsonclientId, authParameters, username, or password keys408 as proof of a server-side timeout without checking Hubitat transport-error flags