Keycloak登录页面显示“无效参数:redirect_uri" [英] Keycloak login page shows 'invalid parameter: redirect_uri'

查看:1536
本文介绍了Keycloak登录页面显示“无效参数:redirect_uri"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Keycloak身份验证来对角度应用进行身份验证,到目前为止,我已经设法将登录名重定向到Keycloak服务器.但是当重定向而不是登录页面时,我收到500错误页面,显示消息Invalid parameter: redirect_uri

I am using Keycloak authentication to authenticate an angular app and so far I have managed to redirect my login to Keycloak server. But when redirected instead of the login page I am getting a 500 error page with the message Invalid parameter: redirect_uri

推荐答案

在Keycloak中创建客户端时,请设置必填的有效重定向URI"字段.您在此处输入的模式很可能与您从客户端发送的重定向uri不匹配.如果您使用端口号,它们也必须匹配!

When you created the client in Keycloak you set the required 'Valid Redirect URIs' field. Most likely the pattern you entered there doesn't match the redirect uri you are sending from your client. If you use ports numbers, they have to match too!

如果这不是问题,请检查您的Keycloak服务器正在记录什么并将这些详细信息添加到您的问题中.

If this is not the problem, check what your Keycloak server is logging and add those details here to your question.

这篇关于Keycloak登录页面显示“无效参数:redirect_uri"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆