{"id":22268140,"url":"https://github.com/curityio/oauth-assistant-example","last_synced_at":"2026-07-12T12:32:45.437Z","repository":{"id":71444182,"uuid":"510344201","full_name":"curityio/oauth-assistant-example","owner":"curityio","description":"A vanilla JavaScript SPA that uses the OAuth Assistant","archived":false,"fork":false,"pushed_at":"2025-07-17T14:04:35.000Z","size":909,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-10-24T11:41:31.429Z","etag":null,"topics":["code-example","oauth-assistant","oauth2","openid-connect","spa"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/curityio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-04T12:08:53.000Z","updated_at":"2025-07-17T14:04:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe3811f7-bbf1-46fb-96b0-260a974cf419","html_url":"https://github.com/curityio/oauth-assistant-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/curityio/oauth-assistant-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Foauth-assistant-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Foauth-assistant-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Foauth-assistant-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Foauth-assistant-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/curityio","download_url":"https://codeload.github.com/curityio/oauth-assistant-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/curityio%2Foauth-assistant-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35392296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-12T02:00:06.386Z","response_time":87,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["code-example","oauth-assistant","oauth2","openid-connect","spa"],"created_at":"2024-12-03T11:11:41.653Z","updated_at":"2026-07-12T12:32:45.419Z","avatar_url":"https://github.com/curityio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curity OAuth Assistant Example App\n\nThis is a trivial example application that shows how to use the [@curity/oauth-assistant](https://www.npmjs.com/package/@curity/oauth-assistant) to perform OAuth flows and OpenID Connect session management. The example is written using vanilla Javascript.\n\n## Run the Application\n\nPoint the example to your instance of the Curity Identity Server:\n\n```shell\nexport OAUTH_ASSISTANT_EXAMPLE_BASE_URL='http://localhost:8443'\nexport OAUTH_ASSISTANT_EXAMPLE_ISSUER='http://localhost:8443/oauth/v2/oauth-anonymous'\n```\n\nThen run the application at `http://localhost:8080` with the following commands:\n\n```shell\nnpm i\nnpm start\n```\n\n## Run the Curity Identity Server\n\nIf you do not have an instance, run one using Docker:\n\n```shell\ndocker run -it -e PASSWORD=Password1 -p 6749:6749 -p 8443:8443 curity.azurecr.io/curity/idsvr\n```\n\nThen log in to the Admin UI at `https://localhost:6749/admin` with credentials `admin / Password1`.\\\nThen [run the first configuration](https://curity.io/resources/learn/first-config/) and accept all defaults.\n\nTo prepare the Curity Identity Server you can save the following XML to a file.\\\nThen use the Admin UI to upload and merge it using the `Changes / Upload` option.\n    \n```xml\n\u003cconfig xmlns=\"http://tail-f.com/ns/config/1.0\"\u003e\n  \u003cprofiles xmlns=\"https://curity.se/ns/conf/base\"\u003e\n    \u003cprofile\u003e\n      \u003cid\u003eauthentication-service\u003c/id\u003e\n      \u003ctype xmlns:auth=\"https://curity.se/ns/conf/profile/authentication\"\u003eauth:authentication-service\u003c/type\u003e\n      \u003csettings\u003e\n        \u003cauthentication-service xmlns=\"https://curity.se/ns/conf/profile/authentication\"\u003e\n          \u003cauthenticators\u003e\n            \u003cauthenticator\u003e\n              \u003cid\u003ehtml1\u003c/id\u003e\n              \u003chtml-form xmlns=\"https://curity.se/ns/conf/authenticators/html-form\"\u003e\n                \u003caccount-manager\u003edefault-account-manager\u003c/account-manager\u003e\n                \u003ccredential-manager\u003edefault-credential-manager\u003c/credential-manager\u003e\n              \u003c/html-form\u003e\n            \u003c/authenticator\u003e\n          \u003c/authenticators\u003e\n        \u003c/authentication-service\u003e\n      \u003c/settings\u003e\n    \u003c/profile\u003e\n    \u003cprofile\u003e\n      \u003cid\u003etoken-service\u003c/id\u003e\n      \u003ctype xmlns:as=\"https://curity.se/ns/conf/profile/oauth\"\u003eas:oauth-service\u003c/type\u003e\n      \u003csettings\u003e\n        \u003cauthorization-server xmlns=\"https://curity.se/ns/conf/profile/oauth\"\u003e\n          \u003cclient-store\u003e\n            \u003cconfig-backed\u003e\n              \u003cclient\u003e\n                \u003cid\u003eoauth-assistant-client\u003c/id\u003e\n                \u003cno-authentication\u003etrue\u003c/no-authentication\u003e\n                \u003credirect-uris\u003ehttp://localhost:8080/assisted.html\u003c/redirect-uris\u003e\n                \u003credirect-uris\u003ehttp://localhost:8080/\u003c/redirect-uris\u003e\n                \u003cscope\u003eopenid\u003c/scope\u003e\n                \u003cuser-authentication\u003e\n                  \u003callowed-authenticators\u003ehtml1\u003c/allowed-authenticators\u003e\n                  \u003callowed-post-logout-redirect-uris\u003ehttp://localhost:8080/assisted.html\u003c/allowed-post-logout-redirect-uris\u003e\n                \u003c/user-authentication\u003e\n                \u003callowed-origins\u003ehttps://localhost:8443\u003c/allowed-origins\u003e\n                \u003callowed-origins\u003ehttp://localhost:8080\u003c/allowed-origins\u003e\n                \u003ccapabilities\u003e\n                  \u003ccode/\u003e\n                  \u003cimplicit/\u003e\n                  \u003cassisted-token/\u003e\n                \u003c/capabilities\u003e\n              \u003c/client\u003e\n            \u003c/config-backed\u003e\n          \u003c/client-store\u003e\n        \u003c/authorization-server\u003e\n      \u003c/settings\u003e\n    \u003c/profile\u003e\n  \u003c/profiles\u003e\n\u003c/config\u003e\n```\n\n## Further Information\n\nSee the following resources to learn more about running the example and the OAuth Assistant library:\n\n- [OAuth Assistant Example Tutorial](https://curity.io/resources/learn/oauth-assistant/)\n- [Running OAuth flows with the Curity Identity Server and OAuth Assistant](https://curity.io/resources/learn/test-using-oauth-assistant/)\n- [OAuth Assistant npm page](https://www.npmjs.com/package/@curity/oauth-assistant)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Foauth-assistant-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcurityio%2Foauth-assistant-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcurityio%2Foauth-assistant-example/lists"}