{"id":13342828,"url":"https://github.com/tmieulet/xk6-cognito","last_synced_at":"2025-03-12T02:32:43.940Z","repository":{"id":57654683,"uuid":"454400542","full_name":"tmieulet/xk6-cognito","owner":"tmieulet","description":"An example module for https://k6.io/ to get a cognito access token using USER_SRP_AUTH flow.","archived":false,"fork":false,"pushed_at":"2024-06-10T09:35:50.000Z","size":14,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-07-30T21:05:24.499Z","etag":null,"topics":["xk6"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmieulet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-01T13:35:21.000Z","updated_at":"2022-11-15T14:40:53.000Z","dependencies_parsed_at":"2022-09-01T01:41:18.999Z","dependency_job_id":null,"html_url":"https://github.com/tmieulet/xk6-cognito","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmieulet%2Fxk6-cognito","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmieulet%2Fxk6-cognito/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmieulet%2Fxk6-cognito/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmieulet%2Fxk6-cognito/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmieulet","download_url":"https://codeload.github.com/tmieulet/xk6-cognito/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221265583,"owners_count":16788059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["xk6"],"created_at":"2024-07-29T19:30:05.914Z","updated_at":"2024-10-24T02:30:36.185Z","avatar_url":"https://github.com/tmieulet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xk6-cognito\n\nAn example module for https://k6.io/ to get a cognito access token using USER_SRP_AUTH flow.\n\nSee:\n- to create k6 extension: https://github.com/grafana/xk6-sql/blob/master/sql.go , https://k6.io/blog/extending-k6-with-xk6/#building-the-extension-with-xk6 \n- to get a cognito access token: https://github.com/alexrudd/cognito-srp\n\n\n## Install\n\n### Pre-built binaries \n\n``` sh\ngo install go.k6.io/xk6/cmd/xk6@latest\nxk6 build master   --with github.com/tmieulet/xk6-cognito\n\n./k6 run --vus 1 --duration 2s /scripts/examples/loadTest.js\n\n```\n\n### Build from source\n\n\n``` sh\ngit clone https://github.com/tmieulet/xk6-cognito.git \u0026\u0026 cd xk6-cognito\ndocker run --rm -v $(pwd):/scripts -it --entrypoint sh golang:1.17-alpine\n\ncd /scripts/\ngo install go.k6.io/xk6/cmd/xk6@latest\nxk6 build v0.32.0  --with github.com/tmieulet/xk6-cognito=\"/scripts\"\n\n\n```\n\n### Example\n\nIn examples, change all values with ```exToChange``` then run ``` mkdir -p /scripts/target \u0026\u0026 xk6 run --vus 1 --duration 2s /scripts/examples/loadTest.js```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmieulet%2Fxk6-cognito","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmieulet%2Fxk6-cognito","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmieulet%2Fxk6-cognito/lists"}