我正在尝试创建一个postHTTP请求,其中包含一些要设置的表单参数.我正在使用带有节点服务器的axios.我已经有一个构建url的java代码实现,如下所示:
JAVA代码:
HttpPost post = new HttpPost(UriBuilder.fromUri (getProperty("authServerUrl"))
.path(TOKEN_ACCESS_PATH).build(getProperty("realm")));
List<NameValuePair> formParams = new ArrayList<NameValuePair>();
formParams.add(new NameValuePair("username",getProperty ("username")));
formParams.add(new NameValuePair("password",getProperty ("password")));
formParams.add(new NameValuePair("client_id, "user-client"));
Run Code Online (Sandbox Code Playgroud)
我想在axios做同样的事情.
AXIOS实施:
axios.post(authServerUrl +token_access_path,
{
username: 'abcd', //gave the values directly for testing
password: '1235!',
client_id: 'user-client'
}).then(function(response) {
console.log(response); //no output rendered
}
Run Code Online (Sandbox Code Playgroud)
在邮政要求上设置这些形式参数的方法是否正确?
我在Mac OS X(El Capitan)上启动SQuirrel SQL,它上面有JDK1.8会产生一条错误消息,说明JDK版本应该至少为1.6.然后退出.SQL客户端版本是3.7.我该如何解决这个问题?
我们有一个简单的要求: PS:https:/ === https://
当用户点击https:/company_landing.company.com时,应将其重定向到keycloak登录页面(https:/ourcompany-keycloak.company.com).用户输入他/她的keycloak登录凭据.成功登录keycloak后,它们将显示在company_landing页面中.
麻烦是:
用户输入时 - https:/company_landing.company.com
Keycloak尝试打开登录页面,但提供500内部服务器错误,并说"不正确的重定向uri",在浏览器中我看到:
https:/ourcompany-keycloak.company.com/auth/realms/realm1/tokens/login?client_id = company_dev&state = aaaafffff-559d-4312-a8be-123412341234&redirect_uri = http%3A%2F%2Fcompany_landing.company.com%3A8081% 2F%3Fauth_callback%3D1
如果您观察到上面的重定向uri,我认为问题是,重定向uri不是https而是以http开头,并且http:/company-landing.company.com不存在.
设置: keycloak设置: -
领域 - >设置 - >登录:要求SSL =所有请求(也尝试使用"外部")
应用程序 - > realm1 - >设置 - >重定向URI = https://company_landing.company.com/*
AWS负载均衡器: 端口配置:443(https)转发到8443
我很困惑为什么它剥离SSL?在本地环境上测试时,上述工作正常(可能是因为它的http:// localhost),但在尝试访问任何ssl加密的链接时,这总是会提供无效的重定向URL.
-mm
我想把问题及其解决方案放在这里,因为我在从私有 Nexus 存储库中提取图像时遇到了这个问题,但我无法找到明确的解决方案。
问题:
我可以访问私有 Nexus 存储库,我可以对其进行验证,但转到 Nexus 存储库门户并登录。我已经在我的 mac 上安装了 Docker,并尝试从上面的 Nexus 存储库门户中提取图像。
类似于下面的内容(其中redis-dev1是存储库中的图像名称)
docker pull nexusrepo.domain.com:8343/redis-dev1
Run Code Online (Sandbox Code Playgroud)
当我这样做时:我收到以下错误:
Error response from daemon: Get https://nexusrepo.domain.com:8343/redis-dev1/manifests/1:
no basic auth credentials
Run Code Online (Sandbox Code Playgroud) axios ×1
docker ×1
https ×1
javascript ×1
keycloak ×1
macos ×1
node.js ×1
redirect ×1
squirrel-sql ×1
ssl ×1