GithubHelp home page GithubHelp logo

xiaoyaojian / owinoauthprovider Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 6.0 17.75 MB

Sina and Tencent open authentication provider of OWIN

Home Page: https://github.com/xiaoyaojian/OwinOAuthProvider

C# 79.53% CSS 0.56% ASP 0.09% HTML 4.20% JavaScript 15.62%

owinoauthprovider's People

Contributors

xiaoyaojian avatar

Stargazers

 avatar  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

owinoauthprovider's Issues

腾讯的RedirectUrl总是xxx.com/signin-tencent

代码中把这里写死了

public TencentAuthenticationOptions()
            : base(Constants.DefaultAuthenticationType)
        {
            Caption = Constants.DefaultAuthenticationType;
            CallbackPath = new PathString("/signin-tencent");

第三方登入组件拦截401相应的response,并请求QQ,这个部分核心代码在ApplyResponseChallengeAsync
网站Demo使用的是默认的MVC5项目模板,里面给第三方组件传递了回调路径'Account/ExternalLoginCallback'(保存在AuthenticationProperties)但是在ApplyResponseChallengeAsync中只写了这一小段有关代码

 AuthenticationProperties properties = challenge.Properties;
 if (string.IsNullOrEmpty(properties.RedirectUri))
 {
     properties.RedirectUri = currentUri;
 }

所以根本没去用这个RedirectUri

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.