Skip to content

Commit

Permalink
Remove feature flag for deauthorizing athlete
Browse files Browse the repository at this point in the history
This feature was completed in commit d0c52c9.
  • Loading branch information
veloek committed Jan 28, 2024
1 parent e922b32 commit 4423fc5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion Tevling/FeatureFlag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public sealed class FeatureFlag
{
// NB! These names should match those in appsettings.json.
public const string DevTools = "DevTools";
public const string Deauthorize = "Deauthorize";

private readonly string _featureFlag;

Expand Down
12 changes: 5 additions & 7 deletions Tevling/Pages/Profile.razor
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
<p>If using a public/shared computer, please remember to sign out.</p>
<p><a class="btn btn-secondary" href="/auth/logout">Sign out</a></p>

<FeatureGate FeatureFlag="FeatureFlag.Deauthorize">
<hr class="my-4" />
<h4>Delete account</h4>
<p class="text-danger">Delete user account and deauthorize application. All data will be removed.<br />
<em>NB! This cannot be undone!</em></p>
<p><a class="btn btn-danger" href="/auth/logout?deauthorize=true">Forget me</a></p>
</FeatureGate>
<hr class="my-4" />
<h4>Delete account</h4>
<p class="text-danger">Delete user account and deauthorize application. All data will be removed.<br />
<em>NB! This cannot be undone!</em></p>
<p><a class="btn btn-danger" href="/auth/logout?deauthorize=true">Forget me</a></p>
3 changes: 1 addition & 2 deletions Tevling/appsettings.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"TokenUri": "http://localhost:5134/dev/strava/token"
},
"FeatureManagement": {
"DevTools": true,
"Deauthorize": true
"DevTools": true
}
}
3 changes: 1 addition & 2 deletions Tevling/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"Scope": "read,activity:read"
},
"FeatureManagement": {
"DevTools": false,
"Deauthorize": false
"DevTools": false
}
}

0 comments on commit 4423fc5

Please sign in to comment.