diff --git a/changelog/11795.txt b/changelog/11795.txt new file mode 100644 index 000000000..ead4434b2 --- /dev/null +++ b/changelog/11795.txt @@ -0,0 +1,3 @@ +```release-note:improvement +ui: Added auth method descriptions to UI login page +``` \ No newline at end of file diff --git a/ui/app/components/auth-form.js b/ui/app/components/auth-form.js index 7c345524e..9e24fc3c9 100644 --- a/ui/app/components/auth-form.js +++ b/ui/app/components/auth-form.js @@ -178,7 +178,16 @@ export default Component.extend(DEFAULTS, { unauthenticated: true, }, }); - this.set('methods', methods.map(m => m.serialize({ includeId: true }))); + this.set( + 'methods', + methods.map(m => { + const method = m.serialize({ includeId: true }); + return { + ...method, + mountDescription: method.description, + }; + }) + ); next(() => { store.unloadAll('auth-method'); }); diff --git a/ui/app/templates/components/auth-form.hbs b/ui/app/templates/components/auth-form.hbs index 4a718c178..725d4d88d 100644 --- a/ui/app/templates/components/auth-form.hbs +++ b/ui/app/templates/components/auth-form.hbs @@ -26,6 +26,10 @@ @errorMessage={{if (and cluster.standby hasCSPError) cspErrorText error}} data-test-auth-error /> +
{{this.selectedAuthBackend.path}}
+ {{this.selectedAuthBackend.mountDescription}} +