我已将 keycloak.js 包含在索引页面的头部。成功登录后,我将被重定向回我定义的重定向 url,其中authentiated 等于 true。但是,大约 5 秒后,页面将重新加载并返回已验证 true。这只是循环发生,不知道从这里去哪里。这是我的 html 中的内容:
<script src="/js/application/jquery/jquery-3.2.1.min.js"></script>
<script src="/js/application/keycloak.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var keycloak = Keycloak('keycloak.json');
keycloak.init({onLoad:'login-required', flow:'standard'}).success(function(authenticated) {
console.log('load app here');
}).error(function() {
alert('failed to initialize');
});
});
Run Code Online (Sandbox Code Playgroud)
我的 keycloak.json 是:
{
"realm": "myapp",
"auth-server-url": "https://localhost:8081/auth",
"ssl-required": "external",
"resource": "app",
"credentials": {
"secret": "77296286-f52d-48d9-82ac-fcf287486110"
},
"confidential-port": 0,
"policy-enforcer": {},
}
Run Code Online (Sandbox Code Playgroud)
我非常感谢您提出的任何建议。这主要发生在 IE 11 中。我们有很多家庭客户仍在使用 IE 11,所以必须支持它。
我正在使用 4.3.0 中的 keycloak.js 并使用所有 java 4.3.0 适配器。
你好,我创建了一个扩展CustomPainter的小部件。问题是,当调用paint方法时,Size参数的width和height字段始终为0,0我不确定如何解决此问题。任何想法将不胜感激。这是小部件。谢谢!!
class Box extends CustomPainter {
double _top = 0.0;
double _left = 0.0;
double _width = 0.0;
double _height = 0.0;
String _text;
Box(this._top, this._left, this._width, this._height, this._text);
@override
void paint(Canvas canvas, Size size) {
canvas.drawRect(
new Rect.fromLTWH(_left, _top, _width, _height),
new Paint()
..style = PaintingStyle.stroke
..strokeWidth = 2.0
..color = Colors.blue // new Color(0xFF0099FF),
);
}
@override
bool shouldRepaint(Box oldDelegate) {
return false;
}
}
Run Code Online (Sandbox Code Playgroud)
并这样使用它:
new Positioned(
left: 0.0,
top: 0.0,
child: new Container(
child:new CustomPaint(
painter: …Run Code Online (Sandbox Code Playgroud) 我正在使用 spring boot 来监听我的 rabbitmq 实例上的消息。我使用application.properties文件在本地工作。
但是,当我想连接到远程兔子实例时,由于我的 url,我收到了数字格式异常和未知主机异常。
我试过设置spring.rabbitmq.host为:
amqp://myurl/dev and myurl/dev and amqp%3A%2F%2Fmyurl%2Fdev
没有任何工作。任何想法可能会发生什么。我也为远程实例设置了我的用户名和密码。
我无法理解Scala列表.我只想创建一个列表列表: List(list(1,2),List(3,4)) 在REPL中我正在尝试:
val list= List()
val lt = List(1,2)
val ls = List(3,4)
list::lt resolves to - res0: List[Any] = List(List(), 1, 2)
list::ls resolves to - res1: List[Any] = List(List(), 3, 4)
Run Code Online (Sandbox Code Playgroud)
我来自java,从未在功能上编程.我只是没有得到它.
谢谢你的帮助!!
collections ×1
dart ×1
flutter ×1
java ×1
keycloak ×1
scala ×1
spring ×1
spring-boot ×1
spring-mvc ×1