Coder Social home page Coder Social logo

Comments (6)

shigma avatar shigma commented on May 28, 2024

@MaikoTan 这个 issue 大概是怎么回事?

from koishi-plugin-github.

MaikoTan avatar MaikoTan commented on May 28, 2024

@MaikoTan 这个 issue 大概是怎么回事?

Idk, with the latest version now (5.0.2) I can only reproduce the error codes 422 and 408 in authorizing phase. (But I still am not able to make it work either, maybe not the same issue)
I would read some GitHub documents and investigate this issue later.

from koishi-plugin-github.

MaikoTan avatar MaikoTan commented on May 28, 2024

async getTokens(params: any) {
return this.http.post<OAuth>('https://github.com/login/oauth/access_token', {}, {
params: {
client_id: this.config.appId,
client_secret: this.config.appSecret,
...params,
},
headers: { Accept: 'application/json' },
timeout: this.config.requestTimeout,
})
}

Looks like the code here requests the URL with query parameter instead of HTTP body, is it expected?

from koishi-plugin-github.

shigma avatar shigma commented on May 28, 2024

Looks like the code here requests the URL with query parameter instead of HTTP body, is it expected?

I think I'm doing what the documentation says.

https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#2-users-are-redirected-back-to-your-site-by-github

from koishi-plugin-github.

MicroCBer avatar MicroCBer commented on May 28, 2024

As for my experience, if config.redirect is misconfigured, the api would be likely to return a 4xx error. Also, there seems not to be any configuration check here.

from koishi-plugin-github.

colour93 avatar colour93 commented on May 28, 2024

我也遇到了,无论是配置了 config.redirect 还是使用默认,都会出现如上问题,且最终绑定不成功

from koishi-plugin-github.

Related Issues (20)

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.