Coder Social home page Coder Social logo

authy.net's People

Contributors

acamino avatar devinmartin avatar robinske avatar senekis avatar serargz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

authy.net's Issues

Authy 2 Factor Authentication-Created Users are not avail in the screeen while create through C#.Net

Hi Team,

Im senthil I have created the users with respective parameters with [Email,phone number,country Code] from your web site its created successfully and at the same it will appear in the list ref (fig 1,2) .

At the same i'm using the below code which is available in your code center[Project Name: authy.net-master] using c# language even I attached the same project. When I run the demo, i'm getting success status with “User Created Successfully” message after that im checking my account from your web site but the user not appear in the screen. Please let me know the reason and where I did the mistake . I raised the query from yesterday morning from your support menu which is provided by your website. Please rectify the issue urgently

const` string goodApiKey = "0cd08abec2e9b9641e40e9470a7fc336";



var client = new AuthyClient(goodApiKey, true);

            var result = client.RegisterUser("[email protected]", "862-927-7514",91);

            Assert.AreEqual(AuthyStatus.Success, result.Status);





//Method

public RegisterUserResult RegisterUser(string email, string cellPhoneNumber, int countryCode = 1)

        {

            var request = new System.Collections.Specialized.NameValueCollection()

            {

                {"user[email]", email},

                {"user[cellphone]",cellPhoneNumber},

                {"user[country_code]",countryCode.ToString()}

            };



            var url = string.Format("{0}/protected/json/users/new?api_key={1}", this.baseUrl, this.apiKey);

            return this.Execute<RegisterUserResult>(client =>

            {

                var response = client.UploadValues(url, request);

                var textResponse = Encoding.ASCII.GetString(response);



                RegisterUserResult apiResponse = JsonConvert.DeserializeObject<RegisterUserResult>(textResponse);

                apiResponse.RawResponse = textResponse;

                apiResponse.Status = AuthyStatus.Success;

                apiResponse.UserId = apiResponse.User["id"];



                return apiResponse;

            });

        }

Sample Image.docx

Add Authy OneTouch Support

Guys, what do you think about adding Authy OneTouch support to authy.net? It would be great, right?

Would you mind having a look at https://gist.github.com/acamino/90d6638a1e03db2cd4e9. You'll find a proposal about a implementation that uses the infrastructure you already have for Execute.

The proposed implementation tries to mimic the separation of concerns you already have on authy-ruby.

This proposal introduces 3 classes:

  1. OneTouchClient which holds the logic to send an approval request to Authy OneTouch.
  2. SendApprovalRequestResult.cs, this one represents the result from sending an approval request.
  3. OneTouchRequestValidator, this class hides the complexity for verifying authenticity of callbacks from Authy.

If do you think that having this functionality in authy.net is a good idea, I'd love to contribute with the project.

I'd like to hear your opinion on this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.