From 9f4f38346c984d05a65d68644a0d060ef578fbf8 Mon Sep 17 00:00:00 2001 From: PARK BYUNG JUN Date: Sat, 20 Aug 2022 12:55:09 +0000 Subject: [PATCH] signinWithoutSecurityCode is added --- src/c2se/frontend/identity.rs | 2 + src/c2se/identity.rs | 126 ++++++++++++++++++++-------------- src/ss/identity.rs | 36 ++++++++++ 3 files changed, 112 insertions(+), 52 deletions(-) diff --git a/src/c2se/frontend/identity.rs b/src/c2se/frontend/identity.rs index e04aec2..d85d28d 100644 --- a/src/c2se/frontend/identity.rs +++ b/src/c2se/frontend/identity.rs @@ -6,3 +6,5 @@ pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str = const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication"); pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha"); pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); +pub const SUBJECT_SIGNIN_WITHOUT_SECURITY_CODE: &str = + const_format::concatcp!(SUBJECT, ".SigninWithoutSecurityCode"); diff --git a/src/c2se/identity.rs b/src/c2se/identity.rs index ba42fc4..8bcb690 100644 --- a/src/c2se/identity.rs +++ b/src/c2se/identity.rs @@ -1,86 +1,108 @@ #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckUsernameForDuplicationRequest { - #[prost(string, tag="1")] - pub username: ::prost::alloc::string::String, + #[prost(string, tag = "1")] + pub username: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckUsernameForDuplicationResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, } /// Nested message and enum types in `CheckUsernameForDuplicationResponse`. pub mod check_username_for_duplication_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(bool, tag="1")] - pub duplicated: bool, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(bool, tag = "1")] + pub duplicated: bool, + } } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckNicknameForDuplicationRequest { - #[prost(string, tag="1")] - pub nickname: ::prost::alloc::string::String, + #[prost(string, tag = "1")] + pub nickname: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct CheckNicknameForDuplicationResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, } /// Nested message and enum types in `CheckNicknameForDuplicationResponse`. pub mod check_nickname_for_duplication_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(bool, tag="1")] - pub duplicated: bool, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(bool, tag = "1")] + pub duplicated: bool, + } } #[derive(Clone, PartialEq, ::prost::Message)] -pub struct CaptchaRequest { -} +pub struct CaptchaRequest {} #[derive(Clone, PartialEq, ::prost::Message)] pub struct CaptchaResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, } /// Nested message and enum types in `CaptchaResponse`. pub mod captcha_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(string, tag="1")] - pub security_code_hash: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(string, tag = "1")] + pub security_code_hash: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub image: ::prost::alloc::string::String, + } } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninRequest { - #[prost(string, tag="1")] - pub security_code_hash: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub security_code: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub username: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub password: ::prost::alloc::string::String, + #[prost(string, tag = "1")] + pub security_code_hash: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub security_code: ::prost::alloc::string::String, + #[prost(string, tag = "3")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "4")] + pub password: ::prost::alloc::string::String, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SigninResponse { - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub result: ::core::option::Option, + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, } /// Nested message and enum types in `SigninResponse`. pub mod signin_response { - #[derive(Clone, PartialEq, ::prost::Message)] - pub struct Result { - #[prost(string, tag="1")] - pub access_token: ::prost::alloc::string::String, - } + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(string, tag = "1")] + pub access_token: ::prost::alloc::string::String, + } +} + +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SigninWithoutSecurityCodeRequest { + #[prost(string, tag = "1")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub password: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SigninWithoutSecurityCodeResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `SigninWithoutSecurityCodeResponse`. +pub mod signin_without_security_code_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(string, tag = "1")] + pub access_token: ::prost::alloc::string::String, + } } diff --git a/src/ss/identity.rs b/src/ss/identity.rs index 8908628..2fcda67 100644 --- a/src/ss/identity.rs +++ b/src/ss/identity.rs @@ -7,6 +7,8 @@ pub const SUBJECT_CHECK_NICKNAME_FOR_DUPLICATION: &str = const_format::concatcp!(SUBJECT, ".CheckNicknameForDuplication"); pub const SUBJECT_CAPTCHA: &str = const_format::concatcp!(SUBJECT, ".Captcha"); pub const SUBJECT_SIGNIN: &str = const_format::concatcp!(SUBJECT, ".Signin"); +pub const SUBJECT_SIGNIN_WITHOUT_SECURITY_CODE: &str = + const_format::concatcp!(SUBJECT, ".SigninWithoutSecurityCode"); pub const EVENT_SUBJECT_AFTER_SIGNIN: &str = const_format::concatcp!(EVENT_SUBJECT, ".AfterSignin"); pub const EVENT_SUBJECT_AFTER_SIGNOUT: &str = @@ -141,6 +143,40 @@ pub mod signin_response { pub access_token: ::prost::alloc::string::String, } } + +/// subject = bet.beteran.ss.identity.SigninWithoutSecurityCode +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SigninWithoutSecurityCodeRequest { + #[prost(message, optional, tag = "1")] + pub client: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub request: ::core::option::Option, +} +/// Nested message and enum types in `SigninWithoutSecurityCodeRequest`. +pub mod signin_without_security_code_request { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Request { + #[prost(string, tag = "1")] + pub username: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub password: ::prost::alloc::string::String, + } +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SigninWithoutSecurityCodeResponse { + #[prost(message, optional, tag = "1")] + pub error: ::core::option::Option, + #[prost(message, optional, tag = "2")] + pub result: ::core::option::Option, +} +/// Nested message and enum types in `SigninWithoutSecurityCodeResponse`. +pub mod signin_without_security_code_response { + #[derive(Clone, PartialEq, ::prost::Message)] + pub struct Result { + #[prost(string, tag = "1")] + pub access_token: ::prost::alloc::string::String, + } +} /// subject = bet.beteran.ss_event.identity.AfterSignin #[derive(Clone, PartialEq, ::prost::Message)] pub struct AfterSigninEvent {