🧹 Remove unused authentication configuration sections from ChallongeTest view

This commit is contained in:
2026-01-29 20:55:52 +00:00
parent 491ae26500
commit 90e9764658

View File

@@ -17,7 +17,8 @@
<div class="info-message"> <div class="info-message">
<h4> Configure Your Authentication</h4> <h4> Configure Your Authentication</h4>
<p> <p>
Manage your Challonge API keys, OAuth tokens, and other authentication methods in the Manage your Challonge API keys, OAuth tokens, and other
authentication methods in the
<strong>Authentication Settings</strong>. <strong>Authentication Settings</strong>.
</p> </p>
<router-link to="/auth" class="btn btn-secondary"> <router-link to="/auth" class="btn btn-secondary">
@@ -36,113 +37,6 @@
@update:per-page="changePerPage" @update:per-page="changePerPage"
/> />
<!-- API Key Configuration -->
<div class="control-group collapsible-group">
<div
class="collapsible-header"
@click="apiKeyCollapsed = !apiKeyCollapsed"
>
<label class="control-label">API Key Configuration</label>
<span class="collapse-icon">{{
apiKeyCollapsed ? '▶' : '▼'
}}</span>
</div>
<div v-show="!apiKeyCollapsed" class="collapsible-content">
<div class="status success">
API Key Loaded: {{ maskedApiKey }}
</div>
<router-link to="/api-key-manager" class="btn-link">
Manage your API key
</router-link>
<p class="api-note">
💡 Your API v1 key works with both API versions
</p>
</div>
</div>
<!-- OAuth Authentication (v2.1 only) -->
<div
v-if="apiVersion === 'v2.1'"
class="control-group oauth-section collapsible-group"
>
<div
class="collapsible-header"
@click="oauthCollapsed = !oauthCollapsed"
>
<label class="control-label">OAuth Authentication</label>
<span class="collapse-icon">{{
oauthCollapsed ? '▶' : '▼'
}}</span>
</div>
<div v-show="!oauthCollapsed" class="collapsible-content">
<div v-if="isAuthenticated" class="oauth-status">
<span class="status-badge status-connected"> Connected</span>
<button @click="oauthLogout" class="btn btn-secondary btn-sm">
Logout
</button>
</div>
<div v-else class="oauth-status">
<span class="status-badge status-disconnected"
> Not Connected</span
>
<button
@click="oauthLogin('me tournaments:read tournaments:write')"
class="btn btn-primary btn-sm"
:disabled="oauthLoading"
>
{{ oauthLoading ? 'Connecting...' : 'Connect with OAuth' }}
</button>
</div>
<span class="oauth-hint">
{{
isAuthenticated
? 'Using OAuth - APPLICATION scope available'
: 'Connect to enable APPLICATION scope'
}}
</span>
</div>
</div>
<!-- Client Credentials (v2.1 only) -->
<div
v-if="apiVersion === 'v2.1'"
class="control-group collapsible-group"
>
<div
class="collapsible-header"
@click="clientCredsCollapsed = !clientCredsCollapsed"
>
<label class="control-label">Client Credentials</label>
<span class="collapse-icon">{{
clientCredsCollapsed ? '▶' : '▼'
}}</span>
</div>
<div v-show="!clientCredsCollapsed" class="collapsible-content">
<div class="info-badge" v-if="isClientCredsAuthenticated">
Client Credentials Active
</div>
<div
class="info-badge warning"
v-if="
isClientCredsAuthenticated &&
tournamentScope === ScopeType.USER
"
>
⚠️ Client credentials may not work with USER scope - switch to
APPLICATION scope
</div>
<router-link
to="/client-credentials"
class="btn btn-secondary btn-sm"
>
Manage Client Credentials
</router-link>
<span class="scope-hint">
Client credentials should use APPLICATION scope for tournament
access
</span>
</div>
</div>
</div> </div>
</div> </div>