Skip to content

Commit 342ee6a

Browse files
committed
add intuit_name scope
1 parent 71929fa commit 342ee6a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

oauth2-platform-api/src/main/java/com/intuit/oauth2/config/Scope.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public enum Scope {
3535
All("ALL"), // openid profile email phone address accounting payments
3636
Payroll("PAYROLL"),
3737
Timetracking("TIMETRACKING"),
38-
Benefits("BENEFITS");
38+
Benefits("BENEFITS"),
39+
IntuitName("INTUIT_NAME");
3940

4041
private final String value;
4142

oauth2-platform-api/src/main/resources/oauthclient.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ PROFILE=profile
3131
PHONE=phone
3232
ADDRESS=address
3333
EMAIL=email
34+
INTUIT_NAME=intuit_name
3435

3536
#Version
36-
version=5.0.0
37+
version=5.0.1
3738

3839
#MIGRATION SERVICE URL
3940
OAUTH_MIGRATION_URL_PRODUCTION=https://developer.api.intuit.com/v2/oauth2/tokens/migrate

oauth2-platform-api/src/test/java/com/intuit/oauth2/config/OAuth2ConfigTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ public void testGetDefaultScope() {
132132

133133
scope = oauth2Config.getScopeValue(Scope.Benefits);
134134
assertEquals("com.intuit.quickbooks.payroll.benefits", scope);
135+
136+
scope = oauth2Config.getScopeValue(Scope.IntuitName);
137+
assertEquals("intuit_name", scope);
135138

136139

137140
}

oauth2-platform-api/src/test/resources/oauthclient.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ PROFILE=profile
3131
PHONE=phone
3232
ADDRESS=address
3333
EMAIL=email
34+
INTUIT_NAME=intuit_name
3435

3536
#Version
36-
version=5.0.0
37+
version=5.0.1
3738

3839
#MIGRATION SERVICE URL
3940
OAUTH_MIGRATION_URL_PRODUCTION=https://developer.api.intuit.com/v2/oauth2/tokens/migrate

0 commit comments

Comments
 (0)