@Test public void testGetDefaultScope() { String scope = oauth2Config.getScopeValue(Scope.Accounting); assertEquals("com.intuit.quickbooks.accounting", scope); scope = oauth2Config.getScopeValue(Scope.Payments); assertEquals("com.intuit.quickbooks.payment", scope); scope = oauth2Config.getScopeValue(Scope.AccountingPayments); assertEquals("com.intuit.quickbooks.accounting com.intuit.quickbooks.payment", scope); scope = oauth2Config.getScopeValue(Scope.All); assertEquals("openid profile email phone address com.intuit.quickbooks.accounting com.intuit.quickbooks.payment", scope); scope = oauth2Config.getScopeValue(Scope.OpenIdAll); assertEquals("openid profile phone address email", scope); scope = oauth2Config.getScopeValue(Scope.Email); assertEquals("email", scope); scope = oauth2Config.getScopeValue(Scope.Address); assertEquals("address", scope); scope = oauth2Config.getScopeValue(Scope.Phone); assertEquals("phone", scope); scope = oauth2Config.getScopeValue(Scope.Profile); assertEquals("profile", scope); scope = oauth2Config.getScopeValue(Scope.OpenId); assertEquals("openid", scope); scope = oauth2Config.getScopeValue(Scope.Payroll); assertEquals("com.intuit.quickbooks.payroll", scope); scope = oauth2Config.getScopeValue(Scope.Timetracking); assertEquals("com.intuit.quickbooks.payroll.timetracking", scope); scope = oauth2Config.getScopeValue(Scope.Benefits); assertEquals("com.intuit.quickbooks.payroll.benefits", scope); scope = oauth2Config.getScopeValue(Scope.IntuitName); assertEquals("intuit_name", scope); }
public String getScopeValue(Scope scope) { logger.debug("Enter OAuth2config::getDefaultScope"); return PropertiesConfig.getInstance().getProperty(scope.value()); }
OAuth2Config { public String getScopeValue(Scope scope) { logger.debug("Enter OAuth2config::getDefaultScope"); return PropertiesConfig.getInstance().getProperty(scope.value()); } }
OAuth2Config { public String getScopeValue(Scope scope) { logger.debug("Enter OAuth2config::getDefaultScope"); return PropertiesConfig.getInstance().getProperty(scope.value()); } private  OAuth2Config(OAuth2ConfigBuilder builder); }
OAuth2Config { public String getScopeValue(Scope scope) { logger.debug("Enter OAuth2config::getDefaultScope"); return PropertiesConfig.getInstance().getProperty(scope.value()); } private  OAuth2Config(OAuth2ConfigBuilder builder); String getIntuitIdTokenIssuer(); String getIntuitAuthorizationEndpoint(); String getIntuitBearerTokenEndpoint(); String getIntuitRevokeTokenEndpoint(); String getIntuitJwksURI(); String getUserProfileEndpoint(); String getClientId(); String getClientSecret(); ProxyConfig getProxyConfig(); void setIntuitAuthorizationEndpoint(String intuitAuthorizationEndpoint); void setIntuitBearerTokenEndpoint(String intuitBearerTokenEndpoint); void setIntuitRevokeTokenEndpoint(String intuitRevokeTokenEndpoint); void setUserProfileEndpoint(String userProfileEndpoint); void setIntuitIdTokenIssuer(String intuitIdTokenIssuer); void setIntuitJwksURI(String intuitJwksURI); String getScopeValue(Scope scope); String generateCSRFToken(); String prepareUrl(List<Scope> scopes, String redirectUri, String csrfToken); String prepareUrl(List<Scope> scopes, String redirectUri); String prepareUrlWithCustomScopes(List<String> scopes, String redirectUri); String prepareUrlWithCustomScopes(List<String> scopes, String redirectUri, String csrfToken); }
OAuth2Config { public String getScopeValue(Scope scope) { logger.debug("Enter OAuth2config::getDefaultScope"); return PropertiesConfig.getInstance().getProperty(scope.value()); } private  OAuth2Config(OAuth2ConfigBuilder builder); String getIntuitIdTokenIssuer(); String getIntuitAuthorizationEndpoint(); String getIntuitBearerTokenEndpoint(); String getIntuitRevokeTokenEndpoint(); String getIntuitJwksURI(); String getUserProfileEndpoint(); String getClientId(); String getClientSecret(); ProxyConfig getProxyConfig(); void setIntuitAuthorizationEndpoint(String intuitAuthorizationEndpoint); void setIntuitBearerTokenEndpoint(String intuitBearerTokenEndpoint); void setIntuitRevokeTokenEndpoint(String intuitRevokeTokenEndpoint); void setUserProfileEndpoint(String userProfileEndpoint); void setIntuitIdTokenIssuer(String intuitIdTokenIssuer); void setIntuitJwksURI(String intuitJwksURI); String getScopeValue(Scope scope); String generateCSRFToken(); String prepareUrl(List<Scope> scopes, String redirectUri, String csrfToken); String prepareUrl(List<Scope> scopes, String redirectUri); String prepareUrlWithCustomScopes(List<String> scopes, String redirectUri); String prepareUrlWithCustomScopes(List<String> scopes, String redirectUri, String csrfToken);  }