Skip to content

Commit

Permalink
aio-lib-java-ims fixed scope parameter typo when calling `/ims/to…
Browse files Browse the repository at this point in the history
…ken/v3` (#211) (#212)

Co-authored-by: Pulkit Gupta <[email protected]>
  • Loading branch information
francoisledroff and pulguptaAdobe authored Jan 29, 2024
1 parent 71776bb commit 06ec44c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ims/src/main/java/com/adobe/aio/ims/api/ImsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ TokenValidation validateJwtToken(

@RequestLine("POST /ims/token/v3?client_id={client_id}")
@Headers("Content-Type: application/x-www-form-urlencoded")
@Body("client_secret={client_secret}&grant_type=client_credentials&scopes={scopes}")
@Body("client_secret={client_secret}&grant_type=client_credentials&scope={scopes}")
AccessToken getOAuthAccessToken(
@Param("client_id") String clientId,
@Param("client_secret") String clientSecret,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void getOAuthAccessToken(MockServerClient client) {
params(
param("client_secret", clientSecret),
param("grant_type", "client_credentials"),
param("scopes", "SCOPE2,SCOPE1")
param("scope", "SCOPE2,SCOPE1")
)
)
).respond(
Expand Down

0 comments on commit 06ec44c

Please sign in to comment.