mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge pull request #268 from ayyoob/transport
resolving create application issues
This commit is contained in:
commit
ae93e0c9a7
@ -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 {
|
||||||
info = this.createOAuthApplication(profile);
|
synchronized (DynamicClientRegistrationServiceImpl.class) {
|
||||||
|
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…
Reference in New Issue
Block a user