我有一个使用 docker 部署的应用程序,其中一个微服务是 jboss/keycloak 服务器。一切正常,但需要手动检索 keycloak RSA 公钥。是否可以通过 REST API 检索 RSA 公钥?
我正在研究 aws-serverless + react 应用程序。我的问题是使用aws-amplify. 身份验证正常,但不会保留会话。
登录中:
await Auth.signIn(this.state.email, this.state.password)
.then(x => {
console.log(JSON.stringify(x))
})
.catch(e => alert(e.message));
Run Code Online (Sandbox Code Playgroud)
回复:
{
"username": "xxxxx",
"pool": {
"userPoolId": "eu-central-1_xxxxx",
"clientId": "xxxxx",
"client": {
"endpoint": "https://cognito-idp.eu-central-1.amazonaws.com/",
"userAgent": "aws-amplify/0.1.x js"
},
"advancedSecurityDataCollectionFlag": true,
"storage": {
"loglevel:webpack-dev-server": "INFO"
}
},
"Session": "xxxxx",
"client": {
"endpoint": "https://cognito-idp.eu-central-1.amazonaws.com/",
"userAgent": "aws-amplify/0.1.x js"
},
"signInUserSession": null,
"authenticationFlowType": "USER_SRP_AUTH",
"storage": {
"loglevel:webpack-dev-server": "INFO"
},
"keyPrefix": "CognitoIdentityServiceProvider.xxxxx",
"userDataKey": "CognitoIdentityServiceProvider.xxxxx.xx@x.pl.userData",
"challengeName": "NEW_PASSWORD_REQUIRED",
"challengeParam": {
"userAttributes": {
"email_verified": "true",
"phone_number_verified": "true",
"phone_number": …Run Code Online (Sandbox Code Playgroud) 我在解决以下代码差异时遇到了问题.
val l1 = List('a', 'b')
val l2 = List(1, 2, 3, 4)
val x = l1.flatMap(v1 => l2.map(b => "" + v1 + b))
print(x)
//List(a1, a2, a3, a4, b1, b2, b3, b4)
Run Code Online (Sandbox Code Playgroud)
.
val l1 = List('a', 'b')
val l2 = List(1, 2, 3, 4)
val x = l1.flatMap(v1 => l2.map(_ => "" + v1 + _))
print(x)
//List(One$$$Lambda$13/398887205@1554909b, One$$$Lambda$13/398887205@6bf256fa, One$$$Lambda$13/398887205@6cd8737, One$$$Lambda$13/398887205@22f71333, One$$$Lambda$13/398887205@13969fbe, One$$$Lambda$13/398887205@6aaa5eb0, One$$$Lambda$13/398887205@3498ed, One$$$Lambda$13/398887205@1a407d53)
Run Code Online (Sandbox Code Playgroud)
不应该_和b表现一样吗?