{"id":18036608,"url":"https://github.com/codexshaper/wp-oauth2","last_synced_at":"2025-09-12T18:40:51.672Z","repository":{"id":42788434,"uuid":"273695030","full_name":"Codexshaper/wp-oauth2","owner":"Codexshaper","description":"OAuth2 implementation for WordPress","archived":false,"fork":false,"pushed_at":"2023-01-06T09:25:37.000Z","size":4897,"stargazers_count":2,"open_issues_count":22,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-04T06:45:20.267Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codexshaper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-20T11:28:58.000Z","updated_at":"2022-10-19T04:20:13.000Z","dependencies_parsed_at":"2023-02-05T19:15:37.408Z","dependency_job_id":null,"html_url":"https://github.com/Codexshaper/wp-oauth2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Codexshaper/wp-oauth2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Fwp-oauth2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Fwp-oauth2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Fwp-oauth2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Fwp-oauth2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codexshaper","download_url":"https://codeload.github.com/Codexshaper/wp-oauth2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codexshaper%2Fwp-oauth2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265895927,"owners_count":23845408,"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-10-30T12:13:45.673Z","updated_at":"2025-07-19T06:04:09.973Z","avatar_url":"https://github.com/Codexshaper.png","language":"CSS","readme":"# Description\nWordPress OAuth2 Server implementation\n\n# Get access token by `client_credentials` grant\n\n```\nendpoint: /cos/oauth/token\nmethod: post\nbody: {\n  \"client_id\": \"YOUR_CLIENT_ID\",\n  \"client_secret\": \"YOUR_CLIENT_SECRET\",\n  \"grant_type\": \"client_credentials\"\n}\n```\nIt'll return `token_type`, `expires_in`, `access_token`\n\n\n# Get access token by `password` grant\n\n```\nendpoint: /cos/oauth/token\nmethod: post\nbody: {\n  \"client_id\": \"YOUR_CLIENT_ID\",\n  \"client_secret\": \"YOUR_CLIENT_SECRET\",\n  \"grant_type\": \"password\",\n  \"username\": \"YOUR_WP_USER_EMAIL\",\n  \"password\": \"YOUR_WP_USER_PASSWORD\"\n}\n```\nIt'll return `token_type`, `expires_in`, `access_token`, `refresh_token`\n\n# Refresh and get new access token by `refresh_token` grant\n\n```\nendpoint: /cos/oauth/token\nmethod: post\nbody: {\n  \"client_id\": \"YOUR_CLIENT_ID\",\n  \"client_secret\": \"YOUR_CLIENT_SECRET\",\n  \"grant_type\": \"refresh_token\",\n  \"refresh_token\": \"PREVEIOSLY_GENERETED_REFRESH_TOKEN\"\n}\n```\nIt'll return `token_type`, `expires_in`, `access_token`, `refresh_token`\n\n# Scope - You can restrict your resource by passings `scope`\n\n```\nendpoint: /cos/oauth/token\nmethod: post\nbody: {\n  \"client_id\": \"YOUR_CLIENT_ID\",\n  \"client_secret\": \"YOUR_CLIENT_SECRET\",\n  \"grant_type\": \"client_credentials\",\n  \"scope\": \"SCOPE_1 SCOPE_2 SCOPE_3\"\n}\n```\n\nNote: If you choose multiple scope then all scopes must be seperate by space delimeter.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexshaper%2Fwp-oauth2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodexshaper%2Fwp-oauth2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodexshaper%2Fwp-oauth2/lists"}