René's URL Explorer Experiment


Title: Consul.Session should support tokens · Issue #170 · python-consul/python-consul · GitHub

Open Graph Title: Consul.Session should support tokens · Issue #170 · python-consul/python-consul

X Title: Consul.Session should support tokens · Issue #170 · python-consul/python-consul

Description: The methods under Consul.Session do not work on a system with ACLs enabled and the default ACL policy is deny. This happens even if the token is set in consul.Consul() as self.agent.token is not passed in the params to the http client. P...

Open Graph Description: The methods under Consul.Session do not work on a system with ACLs enabled and the default ACL policy is deny. This happens even if the token is set in consul.Consul() as self.agent.token is not pa...

X Description: The methods under Consul.Session do not work on a system with ACLs enabled and the default ACL policy is deny. This happens even if the token is set in consul.Consul() as self.agent.token is not pa...

Opengraph URL: https://github.com/python-consul/python-consul/issues/170

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consul.Session should support tokens","articleBody":"The methods under `Consul.Session` do not work on a system with ACLs enabled and the default ACL policy is `deny`. This happens even if the token is set in `consul.Consul()` as `self.agent.token` is not passed in the params to the http client.\r\n\r\nPossible fix:\r\n\r\n```\r\ndiff -ruN python-consul-0.7.2.orig/consul/base.py python-consul-0.7.2/consul/base.py\r\n--- python-consul-0.7.2.orig/consul/base.py\t2017-08-26 09:35:57.000000000 +0200\r\n+++ python-consul-0.7.2/consul/base.py\t2017-09-04 13:56:13.897000258 +0200\r\n@@ -1679,6 +1679,8 @@\r\n             dc = dc or self.agent.dc\r\n             if dc:\r\n                 params['dc'] = dc\r\n+            if self.agent.token:\r\n+                params['token'] = self.agent.token\r\n             data = {}\r\n             if name:\r\n                 data['name'] = name\r\n@@ -1716,6 +1718,8 @@\r\n             dc = dc or self.agent.dc\r\n             if dc:\r\n                 params['dc'] = dc\r\n+            if self.agent.token:\r\n+                params['token'] = self.agent.token\r\n             return self.agent.http.put(\r\n                 CB.bool(),\r\n                 '/v1/session/destroy/%s' % session_id,\r\n@@ -1757,6 +1761,8 @@\r\n             dc = dc or self.agent.dc\r\n             if dc:\r\n                 params['dc'] = dc\r\n+            if self.agent.token:\r\n+                params['token'] = self.agent.token\r\n             if index:\r\n                 params['index'] = index\r\n                 if wait:\r\n@@ -1787,6 +1793,8 @@\r\n             dc = dc or self.agent.dc\r\n             if dc:\r\n                 params['dc'] = dc\r\n+            if self.agent.token:\r\n+                params['token'] = self.agent.token\r\n             if index:\r\n                 params['index'] = index\r\n                 if wait:\r\n@@ -1824,6 +1832,8 @@\r\n             dc = dc or self.agent.dc\r\n             if dc:\r\n                 params['dc'] = dc\r\n+            if self.agent.token:\r\n+                params['token'] = self.agent.token\r\n             if index:\r\n                 params['index'] = index\r\n                 if wait:\r\n@@ -1850,6 +1860,8 @@\r\n             dc = dc or self.agent.dc\r\n             if dc:\r\n                 params['dc'] = dc\r\n+            if self.agent.token:\r\n+                params['token'] = self.agent.token\r\n             return self.agent.http.put(\r\n                 CB.json(one=True, allow_404=False),\r\n                 '/v1/session/renew/%s' % session_id,\r\n```","author":{"url":"https://github.com/akissa","@type":"Person","name":"akissa"},"datePublished":"2017-09-04T11:57:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/170/python-consul/issues/170"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:531be0c6-49f7-8092-54b0-b5df358d9cca
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB018:2F76D:48E790C:5D9FE4A:6975F50E
html-safe-noncef17c81476510a3b961ec1dd1b7e8da1b3fc63cf440fa7f2500d82d778221ed5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDE4OjJGNzZEOjQ4RTc5MEM6NUQ5RkU0QTo2OTc1RjUwRSIsInZpc2l0b3JfaWQiOiI3MTQ5MjU1ODU5NDkzMDA4NjU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac720481681454b21fc6700c88ee93df227aaab3b3c76b8a1b9380b6a8d1b2ed04
hovercard-subject-tagissue:255020304
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/python-consul/python-consul/170/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a696234bfdf9e2b424b11d492aecef2db0ac5cc032a9a2a67d54291e196e6a65/python-consul/python-consul/issues/170
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a696234bfdf9e2b424b11d492aecef2db0ac5cc032a9a2a67d54291e196e6a65/python-consul/python-consul/issues/170
og:image:altThe methods under Consul.Session do not work on a system with ACLs enabled and the default ACL policy is deny. This happens even if the token is set in consul.Consul() as self.agent.token is not pa...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameakissa
hostnamegithub.com
expected-hostnamegithub.com
None2bce766e7450b03e00b2fc5badd417927ce33a860e78cda3e4ecb9bbd1374cc6
turbo-cache-controlno-preview
go-importgithub.com/python-consul/python-consul git https://github.com/python-consul/python-consul.git
octolytics-dimension-user_id143416393
octolytics-dimension-user_loginpython-consul
octolytics-dimension-repository_id24473148
octolytics-dimension-repository_nwopython-consul/python-consul
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24473148
octolytics-dimension-repository_network_root_nwopython-consul/python-consul
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
releasefcca2b8ef702b5f7f91427a6e920fa44446fe312
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-consul/python-consul/issues/170#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-consul%2Fpython-consul%2Fissues%2F170
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-consul%2Fpython-consul%2Fissues%2F170
Sign up https://patch-diff.githubusercontent.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=python-consul%2Fpython-consul
Reloadhttps://patch-diff.githubusercontent.com/python-consul/python-consul/issues/170
Reloadhttps://patch-diff.githubusercontent.com/python-consul/python-consul/issues/170
Reloadhttps://patch-diff.githubusercontent.com/python-consul/python-consul/issues/170
python-consul https://patch-diff.githubusercontent.com/python-consul
python-consulhttps://patch-diff.githubusercontent.com/python-consul/python-consul
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-consul%2Fpython-consul
Fork 218 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-consul%2Fpython-consul
Star 460 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-consul%2Fpython-consul
Code https://patch-diff.githubusercontent.com/python-consul/python-consul
Issues 60 https://patch-diff.githubusercontent.com/python-consul/python-consul/issues
Pull requests 30 https://patch-diff.githubusercontent.com/python-consul/python-consul/pulls
Actions https://patch-diff.githubusercontent.com/python-consul/python-consul/actions
Projects 0 https://patch-diff.githubusercontent.com/python-consul/python-consul/projects
Wiki https://patch-diff.githubusercontent.com/python-consul/python-consul/wiki
Security 0 https://patch-diff.githubusercontent.com/python-consul/python-consul/security
Insights https://patch-diff.githubusercontent.com/python-consul/python-consul/pulse
Code https://patch-diff.githubusercontent.com/python-consul/python-consul
Issues https://patch-diff.githubusercontent.com/python-consul/python-consul/issues
Pull requests https://patch-diff.githubusercontent.com/python-consul/python-consul/pulls
Actions https://patch-diff.githubusercontent.com/python-consul/python-consul/actions
Projects https://patch-diff.githubusercontent.com/python-consul/python-consul/projects
Wiki https://patch-diff.githubusercontent.com/python-consul/python-consul/wiki
Security https://patch-diff.githubusercontent.com/python-consul/python-consul/security
Insights https://patch-diff.githubusercontent.com/python-consul/python-consul/pulse
Consul.Session should support tokenshttps://patch-diff.githubusercontent.com/python-consul/python-consul/issues/170#top
https://github.com/akissa
https://github.com/akissa
akissahttps://github.com/akissa
on Sep 4, 2017https://github.com/python-consul/python-consul/issues/170#issue-255020304
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.