Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Java Client API
Commits
39f2a0a0
Commit
39f2a0a0
authored
Jun 26, 2018
by
Matija Obreza
Browse files
Support blank OAuth client secret
parent
dd1b6fe5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/genesys2/client/oauth/GenesysClient.java
View file @
39f2a0a0
...
...
@@ -92,7 +92,11 @@ public class GenesysClient {
*/
public
GenesysClient
(
final
String
baseUrl
,
final
String
clientId
,
final
String
clientSecret
,
final
String
callbackUrl
,
String
scope
)
{
this
.
baseUrl
=
baseUrl
;
service
=
new
ServiceBuilder
(
clientId
).
apiSecret
(
clientSecret
).
callback
(
callbackUrl
).
scope
(
scope
).
build
(
new
GenesysApi
(
baseUrl
));
ServiceBuilder
serviceBuilder
=
new
ServiceBuilder
(
clientId
).
callback
(
callbackUrl
).
scope
(
scope
);
if
(
StringUtils
.
isNotBlank
(
clientSecret
))
{
serviceBuilder
.
apiSecret
(
clientSecret
);
}
service
=
serviceBuilder
.
build
(
new
GenesysApi
(
baseUrl
));
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment