我将登录控件从帐户/登录移动到主页,并删除了帐户控制器及其视图。在我的机器上一切正常(当然),但是当我部署到我的测试环境时出现错误:
No webpage was found for the web address: https://identity.blah.blah/account/login?returnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dclient.js%26redirect_uri%3Dhttp%253A%252F%252Fblah.blah%26respons etc
我的前端是 Angular 6,我使用 angular-auth-oidc-client。
我的代码中没有任何内容可以创建此 url。sts 服务器 url 只是根 uri,没有帐户/登录名。
{
"stsServer":"https://identity.blah.blah",
"redirect_url":"http://app.blah.blah",
"client_id":"app.client.js",
"response_type":"id_token token",
"scope":"openid profile api.v1",
"post_logout_redirect_uri":"http://app.blah.blah",
"start_checksession":true,
"silent_renew":true,
"startup_route":"/",
"forbidden_route":"/forbidden",
"unauthorized_route":"/unauthorized",
"log_console_warning_active":true,
"log_console_debug_active":false,
"max_id_token_iat_offset_allowed_in_seconds":"10"
}
有人有什么想法吗?也许这是我需要覆盖的硬编码?