resolving create application issues

revert-70aa11f8
ayyoob 9 years ago
parent ba47af3186
commit 8a38abbae6

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

Loading…
Cancel
Save