René's URL Explorer Experiment


Title: The sample app callback uri is not compliant with the Procore API. · Issue #4 · procore/Procore-Sample-Python · GitHub

Open Graph Title: The sample app callback uri is not compliant with the Procore API. · Issue #4 · procore/Procore-Sample-Python

X Title: The sample app callback uri is not compliant with the Procore API. · Issue #4 · procore/Procore-Sample-Python

Description: The Procore API reference states that the only http callback URI that is acceptable is "http://localhost". The sample app uses a callback URI of "http://localhost:3000/users/home" which is rejected by the Procore API at runtime. In order...

Open Graph Description: The Procore API reference states that the only http callback URI that is acceptable is "http://localhost". The sample app uses a callback URI of "http://localhost:3000/users/home" which is rejected...

X Description: The Procore API reference states that the only http callback URI that is acceptable is "http://localhost". The sample app uses a callback URI of "http://localhost:3000/users/home&quo...

Opengraph URL: https://github.com/procore/Procore-Sample-Python/issues/4

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The sample app callback uri is not compliant with the Procore API.","articleBody":"The Procore API reference states that the only http callback URI that is acceptable is \"http://localhost\". The sample app uses a callback URI of \"http://localhost:3000/users/home\" which is rejected by the Procore API at runtime. In order to fix this I had to add the code below into the oath_main file:\r\n```\r\ncallbackapp = Flask(__name__)\r\n\r\n@callbackapp.route('/',methods=[\"GET\", \"POST\"])\r\ndef app_callback1():\r\n    if request.method == \"GET\":\r\n        if session.get('bool') is False:\r\n            code = request.args.get('code')\r\n            cburl= f'{REDIRECT_URI}?code={code}'\r\n    return redirect(cburl)\r\n```\r\n\r\nand then run a separate python script to run it before spinning up the main server on port 3000, coded as follows:\r\n\r\n```\r\nfrom oauth_main import callbackapp\r\n\r\n#------- Runs the callback application ------\r\ncallbackapp.run(debug=True, port=80)\r\n```\r\n\r\nI then had to change all functions that were sending a callback URI to Procore to use http://localhost, which I just hardcoded since it isn't optional.\r\nthese functions were:\r\n\r\n- `make_authorization_url()`\r\n- `get_token(code)`\r\n\r\n\r\n**The issues are twofold:**\r\n\r\n1. The Procore-Official sample app doesn't follow Procore's requirements for callback URIs and therefore is not a currently functioning sample\r\n2. The Procore API does not recognize endpoints at http://localhost/[ENDPOINT HERE] or on other ports. This should be changed to allow any endpoint or port on the local machine - it is far too limiting and clumsy to have to listen on port 80 while running everything else on a different port.","author":{"url":"https://github.com/perrinromney","@type":"Person","name":"perrinromney"},"datePublished":"2022-08-13T01:39:37Z","url":"https://github.com/procore/Procore-Sample-Python/issues/4"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f1341405-69f8-c9bf-f846-bbc1d19cfdae
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8BFC:3204C8:203E9B9:29A6A68:6AFFDBA6
html-safe-nonce43dfaabb437fe2bdc542706cec9e6571f84db7766d359fbf74be0039e66f05e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkZDOjMyMDRDODoyMDNFOUI5OjI5QTZBNjg6NkFGRkRCQTYiLCJ2aXNpdG9yX2lkIjoiMTU3MDIwOTIzMzExNzM3MTMwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbf6c6c9c9e3a7a6294ab766bda92e7014813d28a190b0e2b6df6c5f73c9a68c8
hovercard-subject-tagissue:1337821513
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/procore/Procore-Sample-Python/4/issue_layout
twitter:imagehttps://opengraph.githubassets.com/82c7a541c6d28ea1b3fcf8017b1a9113536f0b70c2bdfe6ef594a902551880e4/procore/Procore-Sample-Python/issues/4
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/82c7a541c6d28ea1b3fcf8017b1a9113536f0b70c2bdfe6ef594a902551880e4/procore/Procore-Sample-Python/issues/4
og:image:altThe Procore API reference states that the only http callback URI that is acceptable is "http://localhost". The sample app uses a callback URI of "http://localhost:3000/users/home" which is rejected...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameperrinromney
hostnamegithub.com
expected-hostnamegithub.com
None0a0d8686a27478df474dd7415776a7a080cde8838b3cd92ea7601187572e5729
turbo-cache-controlno-preview
go-importgithub.com/procore/Procore-Sample-Python git https://github.com/procore/Procore-Sample-Python.git
octolytics-dimension-user_id145387
octolytics-dimension-user_loginprocore
octolytics-dimension-repository_id279956845
octolytics-dimension-repository_nwoprocore/Procore-Sample-Python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id279956845
octolytics-dimension-repository_network_root_nwoprocore/Procore-Sample-Python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release16a11879678aaf97e2a42c33ee70830aa084fa37
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/procore/Procore-Sample-Python/issues/4#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocore%2FProcore-Sample-Python%2Fissues%2F4
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fprocore%2FProcore-Sample-Python%2Fissues%2F4
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=procore%2FProcore-Sample-Python
Reloadhttps://github.com/procore/Procore-Sample-Python/issues/4
Reloadhttps://github.com/procore/Procore-Sample-Python/issues/4
Reloadhttps://github.com/procore/Procore-Sample-Python/issues/4
procorehttps://github.com/procore
Procore-Sample-Pythonhttps://github.com/procore/Procore-Sample-Python
Codehttps://github.com/procore/Procore-Sample-Python
Issues3 (3)https://github.com/procore/Procore-Sample-Python/issues
Pull requests5 (5)https://github.com/procore/Procore-Sample-Python/pulls
Actionshttps://github.com/procore/Procore-Sample-Python/actions
Security and qualityhttps://github.com/procore/Procore-Sample-Python/security
Insightshttps://github.com/procore/Procore-Sample-Python/insights
https://github.com/procore/Procore-Sample-Python
The sample app callback uri is not compliant with the Procore API.https://github.com/procore/Procore-Sample-Python/issues/4#top
https://github.com/perrinromney
perrinromneyhttps://github.com/perrinromney
on Aug 13, 2022https://github.com/procore/Procore-Sample-Python/issues/4#issue-1337821513
http://localhosthttp://localhost
http://localhost:3000/users/homehttp://localhost:3000/users/home
http://localhosthttp://localhost
http://localhost/[ENDPOINThttp://localhost/%5BENDPOINT
Sign up for freehttps://github.com/signup?return_to=https://github.com/procore/Procore-Sample-Python/issues/4
Sign in to commenthttps://github.com/login?return_to=https://github.com/procore/Procore-Sample-Python/issues/4
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.