{"id":30217546,"url":"https://github.com/reflex-dev/reflex-okta-auth","last_synced_at":"2025-08-14T05:19:50.873Z","repository":{"id":306296669,"uuid":"1021773447","full_name":"reflex-dev/reflex-okta-auth","owner":"reflex-dev","description":"Integration with Okta SSO (enterprise)","archived":false,"fork":false,"pushed_at":"2025-07-24T17:09:59.000Z","size":121,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-24T22:47:21.513Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/reflex-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-07-17T23:47:38.000Z","updated_at":"2025-07-21T17:49:48.000Z","dependencies_parsed_at":"2025-07-24T22:57:40.739Z","dependency_job_id":null,"html_url":"https://github.com/reflex-dev/reflex-okta-auth","commit_stats":null,"previous_names":["reflex-dev/reflex-okta-auth"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/reflex-dev/reflex-okta-auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Freflex-okta-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Freflex-okta-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Freflex-okta-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Freflex-okta-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/reflex-dev","download_url":"https://codeload.github.com/reflex-dev/reflex-okta-auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/reflex-dev%2Freflex-okta-auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270364971,"owners_count":24571423,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"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":[],"created_at":"2025-08-14T05:19:46.100Z","updated_at":"2025-08-14T05:19:50.843Z","avatar_url":"https://github.com/reflex-dev.png","language":"Python","readme":"# reflex-okta-auth\n\nThis package requires the `reflex_enterprise` package to be installed.\n\n## Installation\n\n```bash\npip install reflex-okta-auth\n```\n\n## Usage\n\n### Set Up Okta Application\n\nCreate a new Application and set up a .env file with the following variables:\n\n```env\nOKTA_CLIENT_ID=your_client_id\nOKTA_CLIENT_SECRET=your_client_secret\nOKTA_ISSUER_URI=your oauth issuer uri\n```\n\nReflex will need to access these variables to authenticate users.\n\n### Register Auth Callback\n\n```python\nfrom reflex_enterprise import App\nfrom reflex_okta_auth import register_auth_callback\n\n...\n\napp = App()\nregister_auth_callback(app)\n```\n\n### Check `OktaAuthState.userinfo` for user identity/validity\n\n```python\nimport reflex as rx\nfrom reflex_okta_auth import OktaAuthState\n\n@rx.page()\ndef index():\n    return rx.container(\n        rx.vstack(\n            rx.heading(\"Okta Auth Demo\"),\n            rx.cond(\n                rx.State.is_hydrated,\n                rx.cond(\n                    OktaAuthState.userinfo,\n                    rx.vstack(\n                        rx.text(f\"Welcome, {OktaAuthState.userinfo[\"name\"]}!\"),\n                        rx.text(OktaAuthState.userinfo.to_string()),\n                        rx.button(\"Logout\", on_click=OktaAuthState.redirect_to_logout),\n                    ),\n                    rx.button(\"Log In with Okta\", on_click=OktaAuthState.redirect_to_login),\n                ),\n                rx.spinner(),\n            ),\n        ),\n    )\n```\n\n### Validate the Tokens\n\nBefore performing privileged backend operations, it is important to validate the\ntokens to ensure they have not been tampered with. Use\n`OktaAuthState._validate_tokens()` helper method to validate the tokens.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freflex-dev%2Freflex-okta-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freflex-dev%2Freflex-okta-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freflex-dev%2Freflex-okta-auth/lists"}