We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c8f7fa + 06611cc commit 92cb289Copy full SHA for 92cb289
1 file changed
src/main/java/com/epam/reportportal/extension/github/GitHubExtension.java
@@ -152,10 +152,12 @@ public Optional<String> getAuthIntegrationType() {
152
153
@Override
154
public Optional<Map<String, Object>> getAuthProviderInfo() {
155
- return Optional.of(Map.of(
156
- "button", GitHubOAuthProvider.BUTTON_HTML,
157
- "path", getAuthBasePath() + "/" + PROVIDER_NAME
158
- ));
+ return getAuthIntegrationType()
+ .filter(type -> !integrationRepository.findAllByTypeIn(type).isEmpty())
+ .map(_ -> Map.of(
+ "button", GitHubOAuthProvider.BUTTON_HTML,
159
+ "path", getAuthBasePath() + "/" + PROVIDER_NAME
160
+ ));
161
}
162
163
0 commit comments