{"id":15945477,"url":"https://github.com/pjsier/serverless-netlify-oauth","last_synced_at":"2025-02-22T23:42:18.730Z","repository":{"id":88910235,"uuid":"109506213","full_name":"pjsier/serverless-netlify-oauth","owner":"pjsier","description":"Netlify CMS GitHub OAuth with the Serverless framework","archived":false,"fork":false,"pushed_at":"2017-11-04T18:27:18.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T23:30:21.387Z","etag":null,"topics":["github-oauth","netlify","netlify-cms","serverless"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pjsier.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":"2017-11-04T15:25:04.000Z","updated_at":"2020-04-15T16:58:00.000Z","dependencies_parsed_at":"2023-06-13T02:45:46.168Z","dependency_job_id":null,"html_url":"https://github.com/pjsier/serverless-netlify-oauth","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/pjsier%2Fserverless-netlify-oauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fserverless-netlify-oauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fserverless-netlify-oauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pjsier%2Fserverless-netlify-oauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pjsier","download_url":"https://codeload.github.com/pjsier/serverless-netlify-oauth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240250354,"owners_count":19771778,"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":["github-oauth","netlify","netlify-cms","serverless"],"created_at":"2024-10-07T09:02:53.703Z","updated_at":"2025-02-22T23:42:18.723Z","avatar_url":"https://github.com/pjsier.png","language":"JavaScript","readme":"# Serverless Netlify OAuth Provider\n\nBased on [`vencax/netlify-cms-github-oauth-provider`](https://github.com/vencax/netlify-cms-github-oauth-provider), sets up a GitHub OAuth provider for Netlify CMS authentication.\n\n## Setup\n\nSet up `serverless` according to [their documentation](https://github.com/serverless/serverless#quick-start). Then install dependencies with `npm install`, and deploy the initial application with `sls deploy`. In the command line output you'll see the URL of your endpoint (something like https://{API_ID}.execute-api.us-east-1.amazonaws.com/dev/). \n\n### API Gateway Setup\n\nBecause Netlify is checking the origin in OAuth requests and raw API Gateway URLs include the stage (i.e. `/dev/`), you'll need to associate a custom domain name with your API Gateway endpoint.\n\nThen, create a GitHub OAuth app according to the [GitHub developer documentation](https://developer.github.com/apps/building-integrations/setting-up-and-registering-oauth-apps/registering-oauth-apps/). The callback URL should be the API Gateway custom endpoint followed by `/callback`. Once you've set that up, copy the `.env.yml.sample` to `.env.yml`, and fill in the client ID and secret.\n\nYou'll need to add `base_url` to your CMS config file, which will be the custom API Gateway endpoint without a trailing slash.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjsier%2Fserverless-netlify-oauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpjsier%2Fserverless-netlify-oauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpjsier%2Fserverless-netlify-oauth/lists"}