go-schwab / trader

⚡ fast unofficial schwab traderapi hook
https://pkg.go.dev/github.com/go-schwab/trader
GNU General Public License v2.0
15 stars 2 forks source link

move oauth flow -> https://pkg.go.dev/golang.org/x/oauth2 #62

Closed samjtro closed 3 days ago

samjtro commented 2 months ago

what would you like to see (describe affect rather than mechanism, if possible)?

when i built the oauth flow, it was my first time running oauth2 from go; didn't realize there was a stdlib pkg for it. need to move everything over, going to work on this this morning.

going to model it after: https://github.com/loomnetwork/oauth2-noserver

samjtro commented 2 months ago

https://github.com/loomnetwork/oauth2-noserver/blob/master/oauth2ns.go

greytoc commented 2 months ago

You may find this gist helpful - https://gist.github.com/greytoc/3f8faf1ea50bfaf19d2ba5b31b66b1f6

samjtro commented 2 months ago

@greytoc the resources you have shared have been seriously beyond helpful. the 'inspired by' section is a crash-course on go oauth flows!

will have some time later to implement this. will ref this issue when i do. thanks again!

samjtro commented 3 weeks ago

development for this is now happening at go-schwab/oauth2ns, will be closing this issue!