Package com.patreonshout.config
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 newPatreonOAuth
object using the clientId, clientSecret, and redirectUriPatreonCredentials
patreonCredentials()
Creates a newPatreonCredentials
object holding our Patreon client credentialsTwitterCredentials
twitterClient()
Creates a newTwitterCredentials
object holding our twitter application credentialsMethods 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 clientIdclientId is the Patreon id of our client we use during OAuth for users of Patreon Shout -
clientSecret
@Value("${patreonshout.client.secret}") java.lang.String clientSecretclientSecret is the Patreon secret of our client we use during OAuth for users of Patreon Shout -
redirectUri
@Value("${patreonshout.client.redirecturi}") java.lang.String redirectUriredirectUri is the Uri we give to Patreon that lets them redirect information to our endpoints -
twitterClientId
@Value("${twitter.client.id}") java.lang.String twitterClientIdtwitterClientId is the client id of our Twitter app -
twitterClientSecret
@Value("${twitter.client.secret}") java.lang.String twitterClientSecrettwitterClientSecret is the client secret of our Twitter app -
twitterRedirectUri
@Value("${twitter.client.redirecturi}") java.lang.String twitterRedirectUritwitterRedirectUri is the redirect ui of our Twitter app
-
-
Constructor Details
-
PSConfiguration
public PSConfiguration()
-
-
Method Details
-
oauthClient
@Bean public com.patreon.PatreonOAuth oauthClient()Creates a newPatreonOAuth
object using the clientId, clientSecret, and redirectUri- Returns:
- a new PatreonOAuth object
-
twitterClient
Creates a newTwitterCredentials
object holding our twitter application credentials- Returns:
- a new TwitterCredentials object
-
patreonCredentials
Creates a newPatreonCredentials
object holding our Patreon client credentials- Returns:
- a new PatreonCredentials object
-