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.StringclientIdclientId is the Patreon id of our client we use during OAuth for users of Patreon Shout(package private) java.lang.StringclientSecretclientSecret is the Patreon secret of our client we use during OAuth for users of Patreon Shout(package private) java.lang.StringredirectUriredirectUri is the Uri we give to Patreon that lets them redirect information to our endpoints(package private) java.lang.StringtwitterClientIdtwitterClientId is the client id of our Twitter app(package private) java.lang.StringtwitterClientSecrettwitterClientSecret is the client secret of our Twitter app(package private) java.lang.StringtwitterRedirectUritwitterRedirectUri is the redirect ui of our Twitter app -
Constructor Summary
Constructors Constructor Description PSConfiguration() -
Method Summary
Modifier and Type Method Description com.patreon.PatreonOAuthoauthClient()Creates a newPatreonOAuthobject using the clientId, clientSecret, and redirectUriPatreonCredentialspatreonCredentials()Creates a newPatreonCredentialsobject holding our Patreon client credentialsTwitterCredentialstwitterClient()Creates a newTwitterCredentialsobject 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 newPatreonOAuthobject using the clientId, clientSecret, and redirectUri- Returns:
- a new PatreonOAuth object
-
twitterClient
Creates a newTwitterCredentialsobject holding our twitter application credentials- Returns:
- a new TwitterCredentials object
-
patreonCredentials
Creates a newPatreonCredentialsobject holding our Patreon client credentials- Returns:
- a new PatreonCredentials object
-