{"id":19982473,"url":"https://github.com/netlify/example-gated-content-with-okta","last_synced_at":"2026-02-13T05:44:13.261Z","repository":{"id":47628597,"uuid":"122309118","full_name":"netlify/example-gated-content-with-okta","owner":"netlify","description":"This is an example of limiting access to a repository with okta","archived":false,"fork":false,"pushed_at":"2023-11-01T08:18:17.000Z","size":10003,"stargazers_count":5,"open_issues_count":5,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-24T17:49:55.493Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/netlify.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}},"created_at":"2018-02-21T08:18:32.000Z","updated_at":"2023-07-25T14:15:11.000Z","dependencies_parsed_at":"2022-09-06T11:11:20.415Z","dependency_job_id":null,"html_url":"https://github.com/netlify/example-gated-content-with-okta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fexample-gated-content-with-okta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fexample-gated-content-with-okta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fexample-gated-content-with-okta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netlify%2Fexample-gated-content-with-okta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netlify","download_url":"https://codeload.github.com/netlify/example-gated-content-with-okta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241418356,"owners_count":19959736,"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":[],"created_at":"2024-11-13T04:11:43.208Z","updated_at":"2026-02-13T05:44:08.243Z","avatar_url":"https://github.com/netlify.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Okta + Netlify Authentication\n\nThis is an example of using Okta's Login Widget to provide access control for a Netlify site.\n\nTry it out on your own account via this link:\n\n\u003c!-- Markdown snippet --\u003e\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/netlify/example-gated-content-with-okta)\n\nYou must make sure to deploy the site to an account with the JWT based visitor access control enabled.\n\n## Setting Up\n\nMake sure you have an Okta account and a URL for that account.\n\nThen create a new Application inside Okta. Choose Single Page application.\n\nCreate a new API Token and keep it handy.\n\nThen click the deploy button above. Once you've authenticated with GitHub, you will be asked to fill in the following variables:\n\n* **OKTA_BASE_URL** this is the URL of your Okta account, ie: `https://dev-679417.oktapreview.com`\n* **OKTA_API_TOKEN** this is the API token created above\n* **OKTA_CLIENT_ID** the client id for the Okta application created above\n* **JWT_SECRET** either the JWT_SECRET set globally for your Netlify team, or a long random token\n\nOnce the site has been created, go to site settings, and transfer the site to a team with JWT based visitor access control enabled. If you don't have a global JWT secret for the team, go to Access Control under settings and configure the JWT Secret to be the same as in the step above.\n\n\u003c!-- Now rename the site or configure a custom domain, and then go to your Okta application created in the steps above, edit the \"General Settings\" and add your new site as a redirect URL. --\u003e\n\nThen go to \"Trusted Origins\" under \"API\" in Okta and add a new Trusted Origin. Enter a title, the URL of your new site, and check both the CORS and Redirect boxes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlify%2Fexample-gated-content-with-okta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetlify%2Fexample-gated-content-with-okta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetlify%2Fexample-gated-content-with-okta/lists"}