Skip to content

Instantly share code, notes, and snippets.

View RyAndrew's full-sized avatar
🎯
Focusing

Andrew Ry RyAndrew

🎯
Focusing
View GitHub Profile
@RyAndrew
RyAndrew / gist:92d51334972105d7d0d5a5b294614bb5
Created March 11, 2025 05:31
ai experiments - claude sonet 3.7 extended thinking - okta system logs logins per app per day console script
//Prompt:
//Write a clean, efficient JavaScript script for Gabriel Sroka's Okta console tool (https://gabrielsroka.github.io/console/) that fetches Okta system logs for user app login events, count them per app per day, displays the results in a table. Use the tool's native APIs and utilities wherever possible to handle pagination and rate limiting instead of reinventing these mechanisms.
Use he parameters since and until for the okta log api
//paste in source code for console bookmarklet as addl context
//Output:
// Fetch Okta system logs for app login events and count per app per day
// Date range parameters - default to last 7 days
@RyAndrew
RyAndrew / OktaVerify_TOTP_Key_Exteaction.md
Last active July 21, 2026 15:42 — forked from jakariyaa/OktaVerify_TOTP_Key_Exteaction.md
Okta Verify TOTP secret key can be extracted easily using curl and the code below.
  1. Get the content of the QR for Okta Verify app setup. It looks like this: oktaverify://email@domain.com/?t=XXXXX&f=YYYYY&s=https://DOMAIN.okta.com&issuer=DOMAIN.okta.com&isIdxEnabled=true
  2. Replace XXXXX, YYYYY and DOMAIN to your values in curl below:
curl --request POST \
  --url https://DOMAIN.okta.com/idp/authenticators \
  --header 'Accept: application/json; charset=UTF-8' \
  --header 'Accept-Encoding: gzip, deflate' \