草庐IT

authenticate

全部标签

python - 谷歌数据 API : how to do authentication for desktop applications

我想知道在桌面应用程序中为Google数据API验证用户身份的最佳/最简单方法。我通读了docs我的选项似乎是ClientLogin或OAuth。对于ClientLogin,我似乎必须自己实现用于登录名/密码的UI(以及相关的事情,例如将其保存在某处等)。我真的很想知道那里是否有更多的支持可能会弹出一些默认的登录/密码屏幕并使用操作系统钥匙串(keychain)来存储密码等。我想知道为什么没有这样的支持?这不是标准程序吗?通过将该实现留给开发人员(好吧,将实现留给开发人员的可能性当然很好),我猜很多人在这里想出了非常丑陋的解决方案(当他们只是想拼凑一个小脚本时).OAuth似乎是更好的

使用git上传代码遇到关于remote: Support for password authentication was removed on August 13, 2021.的问题

问题remote:SupportforpasswordauthenticationwasremovedonAugust13,2021.remote:Pleaseseehttps://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urlsforinformationoncurrentlyrecommendedmodesofauthentication.大体意思就是:2021年8月13日就已经废除了git使用密码登录github的方式如何解决可

python - Django - (OperationalError) fatal error : Ident authentication failed for user "username"

根据本手册,我编写了一个简单的sqlalchemy-django模型:http://lethain.com/replacing-django-s-orm-with-sqlalchemy/,这对我来说效果很好。我的Django使用以下设置连接到远程postgresql数据库:DATABASES={'default':{'ENGINE':'django.db.backends.postgresql_psycopg2',#Add'postgresql_psycopg2','postgresql','mysql','sqlite3'or'oracle'.'NAME':'wetlab_dev',

python - Flask-Admin & Authentication : "/admin" is protected but "/admin/anything-else" is not

我正在尝试使用Flask和Flask-SuperAdmin自定义我的AdminView,但是,索引View和subview显然没有使用相同的is_accessible方法:编辑:我设法找出我做错了什么。我需要在每个View类中定义is_accessible。这是通过混合类很好地完成的,如固定代码所示:app/frontend/admin.py(固定和工作代码)fromflask.ext.securityimportcurrent_user,login_requiredfromflask.ext.superadminimportexpose,AdminIndexViewfromflask

python - 使用 Python 2.7 + Selenium Webdriver 处理 "Authentication Required"警告框

我在使用安全URL时遇到问题:打开URL会创建一个带有用户名和密码字段的“需要身份验证”警告框。我是SeleniumWebdriver和Python的新手。我不熟悉处理警报,目前正在手动输入凭据,直到我弄清楚这一点。我已经尝试将我的用户名/密码添加到URL中。这对我不起作用。有人可以指点我在警告框的用户名和密码字段中输入key的方向吗? 最佳答案 你可以尝试使用Keys在警报中切换?fromseleniumimportwebdriverfromselenium.webdriver.common.keysimportKeysfroms

python - Django 休息框架 {"detail":"Authentication credentials were not provided."}

我已尝试使用OAuth工具包向我的RestAPI添加身份验证。我进入登录页面并输入我的用户名和密码,然后重定向到我的api。然后我收到一条消息{"detail":"Authenticationcredentialswerenotprovided."}我试过调查这个问题,大多数遇到问题的人似乎都错过了Rest_Framework设置中的某些内容。不过我想我没有。这是我的代码:设置.pyLOGIN_REDIRECT_URL='/api/users/'REST_FRAMEWORK={'DEFAULT_AUTHENTICATION_CLASSES':('rest_framework.authe

Spring Security:身份验证令牌Authentication介绍与Debug分析

在SpringSecurity中,通过Authentication来封装用户的验证请求信息,Authentication可以是需要验证和已验证的用户请求信息封装。接下来,博主介绍Authentication接口及其实现类。AuthenticationAuthentication接口源码(Authentication接口继承Principal接口,Principal接口表示主体的抽象概念,可用于表示任何实体):packageorg.springframework.security.core;importjava.io.Serializable;importjava.security.Princi

解决报错:fatal: Authentication failed for ‘https://github.com/*/*.git/‘

目录问题解决步骤一、 步骤二、步骤三、​步骤四、​步骤五、步骤六、问题今天创建一个github新仓库,首次上传本地代码时,遇到了一个报错。但是,之前这样操作肯定是没有问题的,毕竟我可以保证用户名和密码都是正确的。目测判断是认证相关问题,具体报错信息如下:remote:SupportforpasswordauthenticationwasremovedonAugust13,2021.remote:Pleaseseehttps://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cl

Python 3 - urllib,HTTP 错误 407 : Proxy Authentication Required

我正在尝试使用urllib.request.urlopen()打开网站(我在公司代理后面),但出现错误:urllib.error.HTTPError:HTTPError407:ProxyAuthenticationRequired我可以在urllib.request.getproxies()中找到代理,但如何指定用于它的用户名和密码?我在官方文档中找不到解决方案。 最佳答案 importurllib.requestasreqproxy=req.ProxyHandler({'http':r'http://username:passwo

Python 3 - urllib,HTTP 错误 407 : Proxy Authentication Required

我正在尝试使用urllib.request.urlopen()打开网站(我在公司代理后面),但出现错误:urllib.error.HTTPError:HTTPError407:ProxyAuthenticationRequired我可以在urllib.request.getproxies()中找到代理,但如何指定用于它的用户名和密码?我在官方文档中找不到解决方案。 最佳答案 importurllib.requestasreqproxy=req.ProxyHandler({'http':r'http://username:passwo