mirror of
https://gitee.com/zhangsken/opencode.git
synced 2026-10-16 10:30:01 +08:00
fix(core): drop SSO link from Console sign-in error (#52062)
This commit is contained in:
@@ -73,7 +73,7 @@ class SsoRequiredError extends Schema.TaggedError<SsoRequiredError>()("OpencodeC
|
||||
url: Schema.String,
|
||||
}) {
|
||||
override get message() {
|
||||
return `${ssoMessage(this.organization)}: ${this.url}`
|
||||
return `${ssoMessage(this.organization)}.`
|
||||
}
|
||||
}
|
||||
|
||||
@@ -441,7 +441,7 @@ export const OpencodePlugin = define<HttpClient.HttpClient | Bus.Service | Manag
|
||||
{
|
||||
error: {
|
||||
type: "authentication_error",
|
||||
message: status.url ? `${status.message}: ${status.url}` : `${status.message}.`,
|
||||
message: `${status.message}.`,
|
||||
},
|
||||
},
|
||||
{ status: event.response.status },
|
||||
|
||||
@@ -1017,7 +1017,7 @@ describe("OpencodePlugin", () => {
|
||||
body: {
|
||||
error: {
|
||||
type: "authentication_error",
|
||||
message: `Sign in with SSO again to use Acme: ${server.url.origin}/auth/sso/ssoconn_1/start?redirectTo=%2F`,
|
||||
message: "Sign in with SSO again to use Acme.",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user