feat: 🎸 add oidc-crud feature flag to disable admin list links

This commit is contained in:
Randall Morey committed 2021-04-12 15:31:42 -04:00
1 parent 32ec1f0f70
commit c2b66b74eb
2 files changed
+19 -3

No files matched your search

@@ -58,15 +58,29 @@
{{#each @model as |authMethod|}}
<body.row as |row|>
<row.headerCell>
{{#if authMethod.isPassword}}
{{!
Show link to auth method route if non-OIDC and when
oidc-crud feature is enabled, otherwise show just the name
(when the method is OIDC and oidc-crud is disabled)
}}
{{#if authMethod.isOIDC}}
{{#if (feature-flag 'oidc-crud')}}
<LinkTo
@route="scopes.scope.auth-methods.auth-method"
@model={{authMethod.id}}
>
{{authMethod.displayName}}
</LinkTo>
{{else}}
{{authMethod.displayName}}
{{/if}}
{{else}}
<LinkTo
@route="scopes.scope.auth-methods.auth-method"
@model={{authMethod.id}}
>
{{authMethod.displayName}}
</LinkTo>
{{else}}
{{authMethod.displayName}}
{{/if}}
<p>{{authMethod.description}}</p>
</row.headerCell>
+2
View File
@@ -87,6 +87,7 @@ module.exports = function (environment) {
featureFlags: {
oidc: false,
'oidc-crud': false,
'primary-auth-method': false,
},
};
@@ -125,6 +126,7 @@ module.exports = function (environment) {
// Enable features in development
ENV.featureFlags['primary-auth-method'] = true;
ENV.featureFlags['oidc'] = true;
//ENV.featureFlags['oidc-crud'] = true;
}
if (environment === 'test') {