go-github icon indicating copy to clipboard operation
go-github copied to clipboard

Remove deprecated authentication API endpoints and add replacements

Open gmlewis opened this issue 7 years ago • 17 comments

GitHub Developer API announcement: https://developer.github.com/changes/2019-11-05-deprecated-passwords-and-authorizations-api/

This would be a great PR for any new contributor to this repo or a new Go developer. All contributions are greatly appreciated!

Feel free to volunteer for any issue and the issue can be assigned to you so that others don't attempt to duplicate the work.

Please check out our CONTRIBUTING.md guide to get started.

Thank you!

gmlewis avatar Nov 09 '19 12:11 gmlewis

@gmlewis I'd like to take this up.

waseem18 avatar Nov 09 '19 13:11 waseem18

OK, thanks @waseem18 - it is yours.

gmlewis avatar Nov 12 '19 13:11 gmlewis

@waseem18 Are you working on it ? i just want to know because i would like to do this

mubeenflora avatar Dec 09 '19 06:12 mubeenflora

@mubeenflora Go ahead, I've started work on it but didn't get a chance to complete it.

waseem18 avatar Dec 09 '19 08:12 waseem18

thanks but it'll take time because i have started my new project

mubeenflora avatar Dec 10 '19 09:12 mubeenflora

@mubeenflora Are you actively working on this ? Else I would love to work on this

pavan541cs avatar Dec 25 '19 06:12 pavan541cs

Is this issue still up for grabs? @gmlewis

yashLadha avatar Dec 27 '19 16:12 yashLadha

With no response from @mubeenflora in two days, I'm opening this issue back up.

gmlewis avatar Dec 27 '19 16:12 gmlewis

@gmlewis I am picking this one and start working on this. Thank you for the update and can you assign it to me

pavan541cs avatar Dec 27 '19 17:12 pavan541cs

Thank you, @pavan541cs! It is yours.

gmlewis avatar Dec 27 '19 17:12 gmlewis

@gmlewis #1360 Can you check this PR and tell me if this looks good so that I can make all the changes. I have done only for one endpoint

pavan541cs avatar Dec 31 '19 18:12 pavan541cs

In another PR, I think it helped (me, at least) to list the things that need to be done to complete an issue. So to complete this issue... (note that this checklist is now being used on #1461)...

The following endpoints need to be removed:

  • [x] GET /authorizations
  • [x] GET /authorizations/:authorization_id
  • [x] POST /authorizations
  • [x] PUT /authorizations/clients/:client_id
  • [x] PUT /authorizations/clients/:client_id/:fingerprint
  • [x] PATCH /authorizations/:authorization_id
  • [x] DELETE /authorizations/:authorization_id
  • [x] GET /applications/grants
  • [x] GET /applications/grants/:grant_id
  • [x] DELETE /applications/grants/:grant_id
  • [x] GET /applications/:client_id/tokens/:access_token
  • [x] POST /applications/:client_id/tokens/:access_token
  • [x] DELETE /applications/:client_id/tokens/:access_token
  • ~DELETE /applications/:client_id/grants/:access_token~ - it looks like this one was never implemented :smile:

The following endpoints need to be implemented:

  • [x] POST /applications/:client_id/token
  • [x] PATCH /applications/:client_id/token
  • [x] DELETE /applications/:client_id/token
  • [x] DELETE /applications/:client_id/grant

Thank you, @pavan541cs for continuing to make progress on #1360.

gmlewis avatar Feb 08 '20 13:02 gmlewis

Any updates on this @pavan541cs @gmlewis ? I'd be happy to help out with the PR

clarkbynum avatar Mar 12 '20 14:03 clarkbynum

Hmmm... it looks like #1360 may have stalled. Thank you for the ping, @sh3nan1gans.

Let's wait a day or two for @pavan541cs to respond, and then maybe we'll just open this issue up again and someone else can tackle it from scratch (since it seems that there were a lot of issues that needed to be resolved in #1360).

gmlewis avatar Mar 13 '20 00:03 gmlewis

FYI @gmlewis I'm going to take a stab at this. I'll be referring to your comments and the current state of https://github.com/google/go-github/pull/1360 for guidance but please let me know if there's anything else I should be aware of.

clarkbynum avatar Mar 16 '20 19:03 clarkbynum

@gmlewis - please take a look at this PR - https://github.com/google/go-github/pull/1461 Please let me know if there's anything I missed/should change. Willing to make docs updates as well if necessary

clarkbynum avatar Mar 16 '20 22:03 clarkbynum

OK, to avoid confusion (hopefully), I'm going to close the stalled PR #1360 and start reviewing #1461 so I can use the checkboxes above to help with the review since this is a non-trivial PR. Thank you, @sh3nan1gans, and thank you @pavan541cs for the initial work you did on #1360.

gmlewis avatar Mar 16 '20 22:03 gmlewis