Class PSConfiguration

java.lang.Object
com.patreonshout.config.PSConfiguration

@Configuration
@EnableScheduling
@Import({JPAConfiguration.class,CORSConfiguration.class})
public class PSConfiguration
extends java.lang.Object
Patreon Shout Configuration
  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) java.lang.String clientId
    clientId is the Patreon id of our client we use during OAuth for users of Patreon Shout
    (package private) java.lang.String clientSecret
    clientSecret is the Patreon secret of our client we use during OAuth for users of Patreon Shout
    (package private) java.lang.String redirectUri
    redirectUri is the Uri we give to Patreon that lets them redirect information to our endpoints
    (package private) java.lang.String twitterClientId
    twitterClientId is the client id of our Twitter app
    (package private) java.lang.String twitterClientSecret
    twitterClientSecret is the client secret of our Twitter app
    (package private) java.lang.String twitterRedirectUri
    twitterRedirectUri is the redirect ui of our Twitter app
  • Constructor Summary

    Constructors
    Constructor Description
    PSConfiguration()  
  • Method Summary

    Modifier and Type Method Description
    com.patreon.PatreonOAuth oauthClient()
    Creates a new PatreonOAuth object using the clientId, clientSecret, and redirectUri
    PatreonCredentials patreonCredentials()
    Creates a new PatreonCredentials object holding our Patreon client credentials
    TwitterCredentials twitterClient()
    Creates a new TwitterCredentials object holding our twitter application credentials

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • clientId

      @Value("${patreonshout.client.id}") java.lang.String clientId
      clientId is the Patreon id of our client we use during OAuth for users of Patreon Shout
    • clientSecret

      @Value("${patreonshout.client.secret}") java.lang.String clientSecret
      clientSecret is the Patreon secret of our client we use during OAuth for users of Patreon Shout
    • redirectUri

      @Value("${patreonshout.client.redirecturi}") java.lang.String redirectUri
      redirectUri is the Uri we give to Patreon that lets them redirect information to our endpoints
    • twitterClientId

      @Value("${twitter.client.id}") java.lang.String twitterClientId
      twitterClientId is the client id of our Twitter app
    • twitterClientSecret

      @Value("${twitter.client.secret}") java.lang.String twitterClientSecret
      twitterClientSecret is the client secret of our Twitter app
    • twitterRedirectUri

      @Value("${twitter.client.redirecturi}") java.lang.String twitterRedirectUri
      twitterRedirectUri is the redirect ui of our Twitter app
  • Constructor Details

    • PSConfiguration

      public PSConfiguration()
  • Method Details

    • oauthClient

      @Bean public com.patreon.PatreonOAuth oauthClient()
      Creates a new PatreonOAuth object using the clientId, clientSecret, and redirectUri
      Returns:
      a new PatreonOAuth object
    • twitterClient

      @Bean public TwitterCredentials twitterClient()
      Creates a new TwitterCredentials object holding our twitter application credentials
      Returns:
      a new TwitterCredentials object
    • patreonCredentials

      @Bean public PatreonCredentials patreonCredentials()
      Creates a new PatreonCredentials object holding our Patreon client credentials
      Returns:
      a new PatreonCredentials object