Skip to content

Instantly share code, notes, and snippets.

@rj93
Last active January 24, 2021 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rj93/d055efe6b277daf2942f1bf75e021286 to your computer and use it in GitHub Desktop.
Save rj93/d055efe6b277daf2942f1bf75e021286 to your computer and use it in GitHub Desktop.
Spring Boot Configuration for Reddit OAuth 2.0
spring:
security:
oauth2:
client:
registration:
reddit:
clientId: redditIssuedId
clientSecret: redditIssuedSecret
redirectUri: http://localhost:8080/login/oauth2/code/reddit
scope:
- identity
authorizationGrantType: authorization_code
provider:
reddit:
authorizationUri: https://www.reddit.com/api/v1/authorize
tokenUri: https://www.reddit.com/api/v1/access_token
userInfoUri: https://oauth.reddit.com/api/v1/me
userNameAttribute: name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment