Skip to content

Commit

Permalink
OLMIS-6879: Removed accessTokenValiditySeconds from Client contructor
Browse files Browse the repository at this point in the history
  • Loading branch information
saleksandra committed Jul 6, 2020
1 parent b7b7822 commit 725fa46
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ private void createClient() {
} else if (!client.isPresent()) {
clientRepository.saveAndFlush(new Client(supersetClientId, supersetClientSecret,
"TRUSTED_CLIENT", supersetClientRedirectUri, "authorization_code", "read,write",
null, "hapifhir,notification,diagnostics,cce,auth,requisition,referencedata,report,"
"hapifhir,notification,diagnostics,cce,auth,requisition,referencedata,report,"
+ "stockmanagement,fulfillment,reference-ui"));
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/openlmis/auth/domain/Client.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,11 @@ public Client(String clientId, String clientSecret, String authorities,
* Creates new instance of {@link Client} with registeredRedirectUris.
*/
public Client(String clientId, String clientSecret, String authorities,
String registeredRedirectUris, String authorizedGrantTypes, String scope,
Integer accessTokenValiditySeconds, String resourceIds) {
String registeredRedirectUris, String authorizedGrantTypes,
String scope, String resourceIds) {
this(
clientId, clientSecret, scope, resourceIds, authorizedGrantTypes,
registeredRedirectUris, null, authorities, accessTokenValiditySeconds,null,
registeredRedirectUris, null, authorities, null, null,
null, null
);
}
Expand Down

0 comments on commit 725fa46

Please sign in to comment.