Giter Site home page Giter Site logo

lemonogin-ios's Introduction

Lemonogin

Tired of typing the same old username/password combinations for test accounts while developing your apps? Worry no more, you can use Lemonogin to do the typing for you.

This is a little tool I wrote to simplify the process of signin in.

Image

Long press on a UI element, a popup appears with a list of accounts, pick one and the username/password fields are filled.

This is intended mostly for apps that:

  1. Use user accounts
  2. You have to frequentely sign out and sign in frequently
  3. You and your team share and use the same test accounts

A word of warning though: this is intended only for use while developing, release versions should not include this tool.

Usage

Add Lemonogin.h/.m to your project and include the header in your auth view controller.

After your setup code, configure Lemonogin using the following snippet as a template.

#ifdef DEBUG

    [[Lemonogin manager] setSourceURL:[NSURL URLWithString:@"http://localhost:8000/lemonogin.html"]];
    [[Lemonogin manager] triggerOnAnchor:self.loginButton
                                    view:self.view
                                callback:^(NSString *username, NSString *password, NSString *notes) {
                                    self.usernameField.text = username;
                                    self.passwordField.text = password;
                                }];
#endif
  1. The sourceURL property should point to a publicly accessible file. Put it in Dropbox, your server, or run a locally server with python -m SimpleHTTPServer or php -S localhost:8000. Use the provided lemonogin.html as a template.
  2. The anchor should be the view you want to trigger Lemonogin from (only with a longpress for now).
  3. Let it know the view where it can add the overlay
  4. Do your thing in the callback!

What now?

Hope you find this little tool useful and are not put off by the silly name.

Feel free to open issues or send me your comments.

lemonogin-ios's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.