mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Add restart server message on authentication page when oidc is enabled #4064
This commit is contained in:
		
							parent
							
								
									5cadc8d90f
								
							
						
					
					
						commit
						2ef827e3fa
					
				@ -122,7 +122,8 @@
 | 
			
		||||
          </div>
 | 
			
		||||
        </transition>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="w-full flex items-center justify-end p-4">
 | 
			
		||||
      <div class="w-full flex items-center justify-between p-4">
 | 
			
		||||
        <p v-if="enableOpenIDAuth" class="text-sm text-warning">{{ $strings.MessageAuthenticationOIDCChangesRestart }}</p>
 | 
			
		||||
        <ui-btn color="bg-success" :padding-x="8" small class="text-base" :loading="savingSettings" @click="saveSettings">{{ $strings.ButtonSave }}</ui-btn>
 | 
			
		||||
      </div>
 | 
			
		||||
    </app-settings-content>
 | 
			
		||||
 | 
			
		||||
@ -708,6 +708,7 @@
 | 
			
		||||
  "MessageAddToPlayerQueue": "Add to player queue",
 | 
			
		||||
  "MessageAppriseDescription": "To use this feature you will need to have an instance of <a href=\"https://github.com/caronc/apprise-api\" target=\"_blank\">Apprise API</a> running or an api that will handle those same requests. <br />The Apprise API Url should be the full URL path to send the notification, e.g., if your API instance is served at <code>http://192.168.1.1:8337</code> then you would put <code>http://192.168.1.1:8337/notify</code>.",
 | 
			
		||||
  "MessageAsinCheck": "Ensure you are using the ASIN from the correct Audible region, not Amazon.",
 | 
			
		||||
  "MessageAuthenticationOIDCChangesRestart": "Restart your server after saving to apply OIDC changes.",
 | 
			
		||||
  "MessageBackupsDescription": "Backups include users, user progress, library item details, server settings, and images stored in <code>/metadata/items</code> & <code>/metadata/authors</code>. Backups <strong>do not</strong> include any files stored in your library folders.",
 | 
			
		||||
  "MessageBackupsLocationEditNote": "Note: Updating the backup location will not move or modify existing backups",
 | 
			
		||||
  "MessageBackupsLocationNoEditNote": "Note: The backup location is set through an environment variable and cannot be changed here.",
 | 
			
		||||
 | 
			
		||||
@ -20,10 +20,7 @@ class Auth {
 | 
			
		||||
    // Map of openId sessions indexed by oauth2 state-variable
 | 
			
		||||
    this.openIdAuthSession = new Map()
 | 
			
		||||
    const escapedRouterBasePath = escapeRegExp(global.RouterBasePath)
 | 
			
		||||
    this.ignorePatterns = [
 | 
			
		||||
      new RegExp(`^(${escapedRouterBasePath}/api)?/items/[^/]+/cover$`), 
 | 
			
		||||
      new RegExp(`^(${escapedRouterBasePath}/api)?/authors/[^/]+/image$`)
 | 
			
		||||
    ]
 | 
			
		||||
    this.ignorePatterns = [new RegExp(`^(${escapedRouterBasePath}/api)?/items/[^/]+/cover$`), new RegExp(`^(${escapedRouterBasePath}/api)?/authors/[^/]+/image$`)]
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user