From 58cbfb933973a7b15a387f2a075077137bcd85c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ciarcin=CC=81ski?= Date: Thu, 7 Nov 2024 13:55:23 +0100 Subject: [PATCH 1/5] Add AuthInfoResponse --- core/proxy.proto | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/proxy.proto b/core/proxy.proto index 37864d8..7814bec 100644 --- a/core/proxy.proto +++ b/core/proxy.proto @@ -147,6 +147,12 @@ message ClientMfaFinishResponse { string preshared_key = 1; } +message AuthInfoResponse { + string url = 1; + string csrf_token = 2; + string nonce = 3; +} + // Common client info message DeviceInfo { optional string ip_address = 1; @@ -178,6 +184,7 @@ message CoreResponse { ClientMfaFinishResponse client_mfa_finish = 7; CoreError core_error = 8; InstanceInfoResponse instance_info = 9; + AuthInfoResponse auth_info = 13; } } @@ -198,6 +205,7 @@ message CoreRequest { ClientMfaStartRequest client_mfa_start = 10; ClientMfaFinishRequest client_mfa_finish = 11; InstanceInfoRequest instance_info = 12; + google.protobuf.Empty auth_info = 13; } } From 59c2ac6ed1689390d0aaa675bc83dd1cf2b6ea94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ciarcin=CC=81ski?= Date: Sun, 10 Nov 2024 10:53:01 +0100 Subject: [PATCH 2/5] Add AuthInfoRequest --- core/proxy.proto | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/proxy.proto b/core/proxy.proto index 7814bec..a03ed2b 100644 --- a/core/proxy.proto +++ b/core/proxy.proto @@ -147,6 +147,10 @@ message ClientMfaFinishResponse { string preshared_key = 1; } +message AuthInfoRequest { + string redirect_url = 1; +} + message AuthInfoResponse { string url = 1; string csrf_token = 2; @@ -205,7 +209,7 @@ message CoreRequest { ClientMfaStartRequest client_mfa_start = 10; ClientMfaFinishRequest client_mfa_finish = 11; InstanceInfoRequest instance_info = 12; - google.protobuf.Empty auth_info = 13; + AuthInfoRequest auth_info = 13; } } From 164612900796fbefbe369af70bdb2def255cb7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ciarcin=CC=81ski?= Date: Mon, 11 Nov 2024 23:33:26 +0100 Subject: [PATCH 3/5] Introduce AuthCallbackRequest and AuthCallbackResponse --- core/proxy.proto | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/proxy.proto b/core/proxy.proto index a03ed2b..298eff6 100644 --- a/core/proxy.proto +++ b/core/proxy.proto @@ -157,6 +157,16 @@ message AuthInfoResponse { string nonce = 3; } +message AuthCallbackRequest { + string id_token = 1; + string nonce = 2; + string callback_url = 3; +} + +message AuthCallbackResponse { + string mfa_info = 1; +} + // Common client info message DeviceInfo { optional string ip_address = 1; @@ -189,6 +199,7 @@ message CoreResponse { CoreError core_error = 8; InstanceInfoResponse instance_info = 9; AuthInfoResponse auth_info = 13; + AuthCallbackResponse auth_callback = 14; } } @@ -210,6 +221,7 @@ message CoreRequest { ClientMfaFinishRequest client_mfa_finish = 11; InstanceInfoRequest instance_info = 12; AuthInfoRequest auth_info = 13; + AuthCallbackRequest auth_callback = 14; } } From cdb5ffc7058ae17adb1d64ea5963c9fd2f70e500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Ciarcin=CC=81ski?= Date: Tue, 12 Nov 2024 10:21:02 +0100 Subject: [PATCH 4/5] Abandon AuthCallbackResponse --- core/proxy.proto | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/proxy.proto b/core/proxy.proto index 298eff6..e8f03a7 100644 --- a/core/proxy.proto +++ b/core/proxy.proto @@ -163,10 +163,6 @@ message AuthCallbackRequest { string callback_url = 3; } -message AuthCallbackResponse { - string mfa_info = 1; -} - // Common client info message DeviceInfo { optional string ip_address = 1; @@ -199,7 +195,6 @@ message CoreResponse { CoreError core_error = 8; InstanceInfoResponse instance_info = 9; AuthInfoResponse auth_info = 13; - AuthCallbackResponse auth_callback = 14; } } From b9adb0bc87228c88c42f144caa47c8b69a3fb98c Mon Sep 17 00:00:00 2001 From: Aleksander <170264518+t-aleksander@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:52:01 +0100 Subject: [PATCH 5/5] add button display name, pass url and token to proxy --- core/proxy.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/proxy.proto b/core/proxy.proto index e8f03a7..ecdbd6d 100644 --- a/core/proxy.proto +++ b/core/proxy.proto @@ -155,14 +155,20 @@ message AuthInfoResponse { string url = 1; string csrf_token = 2; string nonce = 3; + optional string button_display_name = 4; } message AuthCallbackRequest { - string id_token = 1; + string code = 1; string nonce = 2; string callback_url = 3; } +message AuthCallbackResponse { + string url = 1; + string token = 2; +} + // Common client info message DeviceInfo { optional string ip_address = 1; @@ -195,6 +201,7 @@ message CoreResponse { CoreError core_error = 8; InstanceInfoResponse instance_info = 9; AuthInfoResponse auth_info = 13; + AuthCallbackResponse auth_callback = 14; } }