Update auth message, update force re-login to pull auth methods to support oidc
Some checks failed
Build APK / main (push) Has been cancelled
Verify all i18n files are alphabetized / update_translations (push) Has been cancelled

This commit is contained in:
advplyr 2025-07-17 17:37:41 -05:00
parent 224d75fac5
commit 87614bc78a
2 changed files with 11 additions and 8 deletions

View file

@ -22,9 +22,6 @@
<p class="text-xs text-warning">{{ $strings.MessageOldServerAuthWarning }}</p> <p class="text-xs text-warning">{{ $strings.MessageOldServerAuthWarning }}</p>
<ui-btn class="text-xs whitespace-nowrap" :padding-x="2" :padding-y="1" @click="showOldAuthWarningDialog">{{ $strings.LabelMoreInfo }}</ui-btn> <ui-btn class="text-xs whitespace-nowrap" :padding-x="2" :padding-y="1" @click="showOldAuthWarningDialog">{{ $strings.LabelMoreInfo }}</ui-btn>
</div> </div>
<div v-else-if="!config.version" class="flex flex-nowrap justify-between items-center space-x-4 pt-4">
<p class="text-xs text-warning">No server version set. Connect to update server config.</p>
</div>
</div> </div>
<div class="my-1 py-4 w-full"> <div class="my-1 py-4 w-full">
<ui-btn class="w-full" @click="newServerConfigClick">{{ $strings.ButtonAddNewServer }}</ui-btn> <ui-btn class="w-full" @click="newServerConfigClick">{{ $strings.ButtonAddNewServer }}</ui-btn>
@ -680,9 +677,13 @@ export default {
if (statusData.data.authFormData?.authOpenIDAutoLaunch) { if (statusData.data.authFormData?.authOpenIDAutoLaunch) {
this.clickLoginWithOpenId() this.clickLoginWithOpenId()
} }
return true
} else {
return false
} }
} catch (error) { } catch (error) {
this.handleLoginFormError(error) this.handleLoginFormError(error)
return false
} finally { } finally {
this.processing = false this.processing = false
} }
@ -925,10 +926,12 @@ export default {
this.processing = false this.processing = false
return authRes return authRes
}, },
setForceReloginForNewAuth() { async setForceReloginForNewAuth() {
// This calls /status on the server and sets the auth methods
const result = await this.submit()
if (result) {
this.error = this.$strings.MessageOldServerAuthReLoginRequired this.error = this.$strings.MessageOldServerAuthReLoginRequired
this.showAuth = true }
this.showForm = true
}, },
init() { init() {
// Handle force re-login for servers using new JWT auth but still using an old token in the server config // Handle force re-login for servers using new JWT auth but still using an old token in the server config

View file

@ -327,7 +327,7 @@
"MessageNoUserPlaylists": "You have no playlists", "MessageNoUserPlaylists": "You have no playlists",
"MessageOldServerAuthReLoginRequired": "Authentication has been improved for security in server v2.26.0. All users are required to re-login.", "MessageOldServerAuthReLoginRequired": "Authentication has been improved for security in server v2.26.0. All users are required to re-login.",
"MessageOldServerAuthWarning": "Server is using out-dated authentication", "MessageOldServerAuthWarning": "Server is using out-dated authentication",
"MessageOldServerAuthWarningHelp": "Authentication was updated in server v2.26.0 for security. It is strongly recommended to update the server to the latest version.", "MessageOldServerAuthWarningHelp": "This server is running a version older than v2.26.0. A more secure authentication system was added in v2.26.0. It is strongly recommended to update the server to the latest version. If you have already updated the server, log in again to use the new authentication.",
"MessageOldServerConnectionWarning": "Server connection config is using an old user ID. Please delete and re-add this server connection.", "MessageOldServerConnectionWarning": "Server connection config is using an old user ID. Please delete and re-add this server connection.",
"MessageOldServerConnectionWarningHelp": "You originally set up the connection to this server prior to the database migration in 2.3.0, released June 2023. A future server update will remove the ability to sign in with this old connection. Please delete the existing server connection and connect again (using the same server address and credentials). If you have any downloaded media on this device, the media will need to be downloaded again to sync with the server.", "MessageOldServerConnectionWarningHelp": "You originally set up the connection to this server prior to the database migration in 2.3.0, released June 2023. A future server update will remove the ability to sign in with this old connection. Please delete the existing server connection and connect again (using the same server address and credentials). If you have any downloaded media on this device, the media will need to be downloaded again to sync with the server.",
"MessagePodcastSearchField": "Enter search term or RSS feed URL", "MessagePodcastSearchField": "Enter search term or RSS feed URL",