Videos
You can now use Sync for Reddit after July 1 using the Spoof client patch with ReVanced!
Follow the instructions in this post.
Troubleshooting:
If your patched app crashes, your APK file may be broken. Check if it does not crash when you don't patch it. If your APK file turns out to be broken, you need to source a working APK from somewhere else.
I published a PRAW project on my github and I left those (+my user agent but not my refresh token) in the code in plain text. I didn't think it was an issue at the time, as they could just use my app instance to run the program, however later I thought that might be a security issue?
If someone were to take my client ID and secret, they shouldn't be able to authorize it with my reddit account or use my account permissions or do anything bad (the permissions are only identity and read anyway)
The worst thing I can think of is using my app instance and user agent to create a bot that breaks the TOS of the API and potentially get me in trouble.
as title, I try setting Github oauth in CE version using custom oauth/
I using this setting:
Client ID: Client ID Client secret: Client secret Authorization URL: https://github.com/login/oauth/authorize Access token URL: https://github.com/login/oauth/access_token Resource URL: https://api.github.com/user Redirect URL: portainer's URL Logout URL: blank User identifier: email Scopes: user:email Auth Style: Auto
it can correct go to github login and authorize page but show Unable to login via OAuth at portainer.
after this got error I go to official website to get a 3-node-BE-Key to try build-in Github oauth.
I put the same Client ID and Client secret in it BE's setting and go github change Homepage and Callback URL to this BE's IP address (https://myipadd:9443) to test it and get same problem.
both with Automatic user provisioning so it should auto create user when using Oauth login.
so is it just portainer issue or github api dead? (github status says no error of api)
I'm reading https://socialiteproviders.com/Reddit/ and I want to implement Reddit OAuth login on my site. Does Reddit allow that? Where do I start`?
Hi redditdev,
I have a small project to make a separate site to handle modmail in my sub because it is kinda hard to handle when you got ton of report using reddit default modmail.
I'm planning to use reddit OAuth so our redditor can just use their Reddit account to access the modmail site, I have no experience in OAuth, I read the tutorial from this link but I don't really understand the basic of token, authorize, etc.
https://github.com/reddit/reddit/wiki/OAuth2
Anyone have a good article for beginner to start? Site is written in C#(ASP), if anyone have a code example/API wrapper for C#, that would help me greatly.
RedditSharp is a pretty neat C# wrapper, although I don't think it supports OAuth. As far as I know, the only wrapper that does OAuth is PRAW which is for Python.
if you are using vs 2012 or 2013, and MVC4.
Then you can take advantage of the built in OAuth provider from NuGet. When you create a new MVC4 site it actually defaults to having the oauth stuff, it is just commented out.
asp OAuth
then you can create your reddit oauth provider, register, and configure it properly and you're good to go.
I'm building my first Java API from scratch and I'm using a Spotify dev account to utilize their API with my own. After making my dev account I was given a client id and secret key. What do I do with these? Where do I put them in my application?
As of right now, you cannot retrieve a permanent access token. You have 2 options that come close.
The first is to request a "refresh" token when using the standard OAuth flow. That's what you're doing by sending "duration" as "permanent" in your code. The refresh token can be used to automatically retrieve new 1 hour access tokens without user intervention; the only manual steps are on the initial retrieval of the refresh token.
The second alternative, which applies only when writing a script for personal use, is to use the password grant type. The steps are described in more detail on reddit's "OAuth Quick Start" wiki page, but I'll summarize here:
- Create an OAuth client (under https://www.reddit.com/prefs/apps) with type = "script"
- Make a request to
https://www.reddit.com/api/v1/access_tokenwith POST parametersgrant_type=password&username=<USERNAME>&password=<PASSWORD>. Send your client ID and secret as HTTP basic authentication.<USERNAME>must be registered as a developer of the OAuth 2 client ID you send.
A client_id and client_secret can be generated for a reddit account by going to https://www.reddit.com/prefs/apps and creating an app:
The part I have hidden is my client_id.
Then you can use a client like praw to access reddit e.g. with Python:
import praw
r = praw.Reddit(client_id='insert id here',
client_secret='insert secret here',
user_agent='insert user agent')
page = r.subreddit('aww')
top_posts = page.hot(limit=None)
for post in top_posts:
print(post.title, post.ups)
You could use your current browser's user agent, which can be easily found by google searching "what is my user agent" (among other ways).