Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanrdoherty committed Jul 4, 2024
1 parent 41555ba commit 2074d7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public String getOauthUrl() {
* (called only if authentication method is OAUTH2)
*/
public String getExternalOauthUrl() {
return _externalOauthUrl == null || _externalOauthUrl.isBlank() ? _externalOauthUrl : _oauthUrl;
return _externalOauthUrl != null && !_externalOauthUrl.isBlank() ? _externalOauthUrl : _oauthUrl;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public class ModelConfigBuilder {
// user authentication setup
private AuthenticationMethod _authenticationMethod = AuthenticationMethod.USER_DB;
private String _oauthUrl = ""; // needed if method is OAUTH2
private String _externalOauthUrl = ""; // may be needed if method is OAUTH2 and internal URL is not available externally
private String _externalOauthUrl = null; // may be needed if method is OAUTH2 and internal URL is not available externally
private String _oauthClientId = ""; // needed if method is OAUTH2
private String _oauthClientSecret = ""; // needed if method is OAUTH2
private String _changePasswordUrl = ""; // probably needed if method is OAUTH2
Expand Down

0 comments on commit 2074d7d

Please sign in to comment.