Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CB-5625 Show only enabled identity providers in configuration section #2927

Conversation

sergeyteleshev
Copy link
Contributor

No description provided.

@sergeyteleshev sergeyteleshev self-assigned this Sep 19, 2024

export type AuthProvider = NonNullable<AuthProviderInfoFragment>;
export type AuthProviderConfiguration = NonNullable<AuthProviderConfigurationInfoFragment>;

@injectable()
export class AuthProvidersResource extends CachedMapResource<string, AuthProvider> {
get configurable(): AuthProvider[] {
return this.values.filter(provider => provider.configurable);
const enabledAuthProviders = new Set(this.serverConfigResource.enabledAuthProviders);
Copy link
Member

@devnaumov devnaumov Sep 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We dont want this logic in resource, please move it to the plugin-identity-providers-administration and filter on the component level, also we want to show some placeholder (we need to thing about the ui) if there is no available providers

Copy link
Member

@Wroud Wroud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert all related to setOnShowDetails please use components for such logic

@Wroud Wroud dismissed devnaumov’s stale review September 27, 2024 10:21

it's okay for now

@Wroud Wroud merged commit 9bc6bd0 into devel Sep 27, 2024
6 of 7 checks passed
@Wroud Wroud deleted the CB-5625-show-only-enabled-identity-providers-in-configuration-section branch September 27, 2024 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants