This commit is contained in:
mharindu 2016-05-19 00:42:27 +05:30
commit 52b300c06a

View File

@ -82,7 +82,9 @@ public class DynamicClientRegistrationServiceImpl implements DynamicClientRegist
oAuthApplicationInfo.addParameter(TOKEN_SCOPE, Arrays.toString(tokenScopes));
OAuthApplicationInfo info;
try {
info = this.createOAuthApplication(profile);
synchronized (DynamicClientRegistrationServiceImpl.class) {
info = this.createOAuthApplication(profile);
}
} catch (DynamicClientRegistrationException | IdentityException e) {
throw new DynamicClientRegistrationException("Can not create OAuth application : " + applicationName, e);
}