Giter Site home page Giter Site logo

suxinde2009 / auth Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emilyzhouwm/auth

0.0 1.0 0.0 12.98 MB

微信、微博、QQ、facebook第三方登录授权,并获得昵称和头像。 DEMO是不能直接跑的,ID都置空了,一定要配置上你自己在各个第三方申请到的ID。 使用简单。

Home Page: https://coding.net/u/emilyzhou/p/auth/git

Ruby 0.03% Objective-C 98.75% HTML 1.22%

auth's Introduction

请使用自己的配置 #warning 配置好Key

	[WMAuthManager registerApp:WMAuthAll withApplication:application withOptions:launchOptions];
    
    return [WMAuthManager handleOpenURL:url
                            application:application
                      sourceApplication:sourceApplication
                             annotation:annotation];

    [WMAuthManager activateApp];

    __weak typeof(self) weakself = self;
    [WMAuthManager sendAuthType:WMAuthFacebook
                      withBlock:^(BOOL isOK, NSString *openID) {
                          [weakself login:isOK withInfo:openID withType:@"facebook"];
                      }
                   withUserInfo:nil
                withUserInfoImg:^(NSString *userName, UIView *userAvatar) {
                    [weakself showUserInfo:userName withAvatarImg:userAvatar];
                }
                 withController:self];

auth's People

Contributors

emilyzhouwm avatar

Watchers

James Cloos 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.