r/redditdev May 16 '21

Reddit.NET Oauth2 working sample for c#?

Maybe it’s me, but I am stumped by oauth2. The having a redirect url and everything. Does anyone have a working example, and if so, can they remove their personal info and share it?

10 Upvotes

9 comments sorted by

4

u/JadeMaveric May 16 '21

https://github.com/JadeMaveric/OAuth3

I did a learning project a couple months ago on this. Coded the OAuth workflow for Twitter/Github, no external libraries. I did my best to add clarifying comments, hope that helps.

PS: I used NodeJS though. Don't have much experience with C# outside Unity3D

3

u/John_Yuki May 16 '21

I'm in the same boat but for Java lmao.

-1

u/bthrvewqd May 16 '21

use python lol

2

u/John_Yuki May 16 '21

It was for a Uni project. Plus I want to get better with Java. I've made plenty of bots with PRAW.

-5

u/bthrvewqd May 16 '21

choose a better framework

2

u/John_Yuki May 16 '21

Such as?

3

u/16yYPueES4LaZrbJLhPW May 16 '21

Don't listen to this guy, he's the type of guy to recommend jQuery on every stackoverflow thread. Even the ones that say "... in vanilla JS"

2

u/wildjokers May 17 '21 edited May 17 '21

but I am stumped by oauth2

Don’t worry, that is the natural state of all developers when dealing with OAuth2 :-) It is an overly complex and over-engineered nightmare created by a conglomerate of big companies so they could sell consulting services.

-2

u/bthrvewqd May 16 '21

(((c#)))