Tag: oauth

“docker拉”提示input密码

我有configuration在〜/ .docker / config.json(其中包含身份validation令牌)pathconfig.json文件。 但是当我做docker pull <registry-url>:5000/testrepo/elasticsearch:latest ,会提示input密码。 但我相信它应该能够下载图像而不提示密码,因为我有auth令牌。 有谁能帮我解决这个问题吗? 谢谢,sunil

无法从Docker容器打开URL

从Docker容器导航到Google身份validation页面时遇到问题。 该应用程序使用asp.net Core 2.0制作,目的是显示即将从Google Calendar API检索的事件,并根据需要创build事件。 当应用程序没有从Docker容器运行时,应用程序将按预期工作,生成授权代码请求URL,并基于环境(Windows,Linux或OSX)尝试使用OpenBrowser方法中的Process.start()打开URL。 private bool OpenBrowser(string url) { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { url = System.Text.RegularExpressions.Regex.Replace(url, @"(\\*)" + "\"", @"$1$1\" + "\""); url = System.Text.RegularExpressions.Regex.Replace(url, @"(\\+)$", @"$1$1"); Process.Start(new ProcessStartInfo("cmd", $"/c start \"\" \"{url}\"") { CreateNoWindow = true }); return true; } if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux)) { Process.Start("xdg-open", url); return true; } if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) { Process.Start("open", […]

Docker注册与第三方OAuth服务

我正在运行一个私人dockerregistry,并希望将其与第三方OAuth服务(Auth0)集成,应该可以按照此处所述进行集成。 Auth0期望通过凭证发回POST到https://myaccount.auth0.com/oauth/token并使用令牌回复。 我不知道如何让dockerregistry发送这个,因为它只发送一个GET请求。 我的registryconfiguration: registry: image: registry:2 ports: – 127.0.0.1:5001:5000 environment: – REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/containers – REGISTRY_AUTH=token – REGISTRY_AUTH_TOKEN_REALM=https://<myaccount>.auth0.com/oauth/token – REGISTRY_AUTH_TOKEN_SERVICE="Docker Registry" – REGISTRY_AUTH_TOKEN_ISSUER="Auth0" – REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE=/ssl/server.crt volumes: – /efs/containers:/containers – /etc/pki/nginx:/ssl 在做docker login我可以预料地得到错误Cannot GET /oauth/token 。 我也尝试使用https://myaccount.auth0.com/authorize终结点代替,它期望一个GET,但是这也期望一个client_id,response_type和redirect_url查询string参数,并将它们附加到TOKEN_REALM url不会没有工作。 这应该如何与registry映像的有限领域,服务和发行者参数一起工作? 或者我应该build立自己的代理authentication服务,与Auth0交谈?

编写.env文件以包含Docker的OAuth凭证

我需要编写一个env文件来包含以下内容:oauth客户端ID,客户端密钥和callbackURL 我以前从来没有写过一个env文件,而且我不确定上述三个标签(或键)是什么。 我知道我从我的OAuth应用程序获取值。 我也明白如何用Docker执行env文件。 请帮忙!

设置本地无人机服务器:无法login。 注册closures

我正在尝试使用我的github帐户为CD设置本地drone.io服务器 。 我正在使用官方docker集装箱。 设置说明说在github设置中添加一个应用程序来获得无人机github远程configuration所需的客户端ID和密码,我已经做了,官方文档的唯一区别是,我看到“注册新应用程序”应用程序“而不是”授权应用程序“,我希望它是一样的。 然后,我定义了环境variables: REMOTE_DRIVER=github REMOTE_CONFIG=https://github.com?client_id=${client_id}&client_secret=${client_secret} 用我自己的replace客户端ID和秘密。 然后我带上容器,尝试login,我被redirect到github的授权页面,我授权,当redirect回来,我得到这个错误: 无法登入。 注册closures。 redirect的URL是: http://drone.myserver.com/login?error=access_denied 我真的不知道什么可能会丢失/ misconfigured,相同的设置与bitbucket远程工作。

WebSphere Docker OAuth

我需要针对IBM WebSphere服务器实现OAuth。 为此,我根据http://www.ibm.com/developerworks/websphere/techjournal/1305_odonnell2/1305_odonnell2.htmlbuild立了docker环境https://github.com/hhoechtl/websphere-oauth 但是,如果我试图获得一个令牌 curl -X POST -H "Accept-Charset: UTF-8" -H "Content-Type: application/x-www-form-urlencoded" -d 'grant_type=password&client_id=LibertyRocks&client_secret=AndMakesConfigurationEasy&username=admin&password=admin' "https://192.168.99.100:9443/oauth2/endpoint/DemoProvider/token" 我得到错误 { "error_description": "CWWKS1406E: The token request had an invalid client credential. The request URI was /oauth2/endpoint/DemoProvider/token.", "error": "invalid_client" } 但根据我的server.xml应该是正确的。 我错过了什么?