Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Announced deprecated APIs still in use #1174

Closed
augustocravosilva opened this issue Dec 20, 2019 · 5 comments
Closed

Announced deprecated APIs still in use #1174

augustocravosilva opened this issue Dec 20, 2019 · 5 comments

Comments

@augustocravosilva
Copy link

Github has announced some deprecations here
https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/#deprecating-and-adding-endpoints-for-the-oauth-authorizations-and-oauth-applications-apis

But octokit.rb seems to still be using the deprecated methods.
For example,

def check_application_authorization(token, options = {})
opts = options.dup
key = opts.delete(:client_id) || client_id
secret = opts.delete(:client_secret) || client_secret
as_app(key, secret) do |app_client|
app_client.get "applications/#{client_id}/tokens/#{token}", opts
end

Should be replaced by POST /applications/:client_id/token

@augustocravosilva augustocravosilva changed the title Announced deprecations Announced deprecated APIs still in use Dec 20, 2019
@donalod
Copy link

donalod commented Feb 19, 2020

Howdy, got another email about this today from Github and as far as I can tell, am not using any explicit queries, so it's just the underlying code above? https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param/

@tarebyte
Copy link
Member

No you’re right it’s the underlying code, I think we forgot about the new endpoints before shipping the last release.

I’ll take a look and see which ones need updating.

@MGudgin
Copy link

MGudgin commented Mar 2, 2020

@tarebyte I've submitted a PR to update octokit.net.

@tarebyte
Copy link
Member

tarebyte commented Mar 2, 2020

I appreciate the effort ✨ unfortunately I don't know C# very well to review it 😅

I'll leave that up to the maintainers of the repo. I only support the Ruby version.

@tarebyte
Copy link
Member

tarebyte commented Mar 3, 2020

Closed by #1203, will report back when we cut a release.

@tarebyte tarebyte closed this as completed Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants