コード例 #1
0
        public virtual string Authenticate([FromUri] DemoAuthenticationModel authenticationModel)
        {
            if (ModelState.IsValid)
            {
                var tokenData = new JwtData
                {
                    Id                = authenticationModel.Id,
                    PhoneNumber       = authenticationModel.MobilePhone,
                    IsCaptchaRequired = false,
                    ClientProcessStep = ClientProcessStep.NA
                };

                return("token : " + JwtService.CreateToken(tokenData));
            }

            throw ResponseBuilderService.GenerateValidationResponse(ModelState);
        }
コード例 #2
0
 public override string Authenticate([FromUri] DemoAuthenticationModel authenticationModel)
 {
     return(base.Authenticate(authenticationModel));
 }