32 Commits

Author SHA1 Message Date
Jordan Reimer
8700becc45
[UI] Ember Data Migration - API Property Casing (#31325)
* updates api client vars to snake_case for custom messages

* updates api client vars to snake_case for tools

* updates api client vars to snake_case for sync

* updates api client vars to snake_case for secrets engine

* updates api client vars to snake_case for auth

* updates api client vars to snake_case for usage

* updates api client dep to point to gh repo

* fixes custom-messages service unit tests

* fixes configure-ssh test

* fixes configure-ssh test...again
2025-07-18 09:32:01 -06:00
claire bontempo
31051ef1e4
UI: Implement api service in auth components (#31085)
* change entity_id to camel casing, remove "backends" key from stored auth data

* fix tokenExpirationEpoch returning NaN, use authSuccess in auth service tests

* camel case mfa_requirement references

* refactor auth service

* implement api service for token method

* implement api service in standard auth methods

* add lookupSelf request to persistAuthData method in auht service instead of calling in components

* implement api service in oidc-jwt component

* implement api service in okta component

* implement api service in saml component

* use api service for wrapped_token query param

* remaining test updates, enterprise tests and stabilize auth helpers

* upate renew() to use new persistAuthData method, add a test

* revert as this will be addressed upstream

* rename supported-login-methods to auth-form-helpers and delete old supported-auth-backends helper, update tests

* cleanup normalize after testing mfa validation for each auth method

* update type declarations, set displayName in each method component

* stabilize redirect tests by waiting for login before asserting url

* stabilize tests

* modernize typescript syntax, move error const to util

* use mirage instead of vault server to resolve test race conditions

* fix file import
2025-07-09 10:11:23 -07:00
claire bontempo
fef422756e
UI: fix custom message namespace test and mirage passthrough requests (#31164)
* navigate to namespace to fix custom message test

* properly return passthrough requests from mirage
2025-07-01 12:42:47 -07:00
claire bontempo
11c179c11d
render description when multiple mounts are visible (#31115) 2025-06-26 11:09:02 -07:00
Dan Rivera
008835ba36
UI: Surface plugin version & cleanup utils (#31001)
* surface plugin version & removing mountable-auth-methods.js

* UI: Removing mountable-secret-engines.js (#30950)

* first pass, removing all related imports

* fix usage

* fix category

* fix typos

* fix more tests

* fix more tests pt2

* attempting WIF const removal

* fix wif tests, removing config consts

* fixing tests

* please

* removing fallback

* cleanup

* fix type ent test

* remove isaddon

* Revert "remove isaddon"

This reverts commit ee114197b7299711e35e3c8e5aca9694063726eb.

* adding tab click

* update case

* fix case, rename to isOnlyMountable

* fix backend form

* more test fix

* adding changelog

* pr comments

* renaming params, adding requiresADP

* updates

* updates and pr comments

* perhaps update the test
2025-06-19 15:10:09 -04:00
claire bontempo
0d6559880a
UI: Reduces margin around Sign in button (#30963) 2025-06-12 15:12:06 -07:00
Angel Garbarino
a51c5ed362
Clean up button test selectors (#30694)
* clean up selectors file and then update testButton to buttonByAttr

* a lot but not really in the scheme of things

* fix component test failures

* fix acceptance test failures

* fix namespace selector

* clean up remaining tests

* another test

* last test

* small changes, but I have test failures

* a mess in custom messages, really hard to test because of test pollution.

* make data-test-submit vs data-test-save

* change other-methods to sign in with other methods

* clean up of failing test

* buttonByAttr to button

* clean up test pollution on config messages

* sweep of clean ups

* another round of small cleanups

* fix some message things, remaining oidc issue?

* use a runCmd to better delete things

* fix to amend for recent auth test changes

* remove skip
2025-06-10 16:25:34 -04:00
claire bontempo
dc0e85b625
UI: Fixes issue where backup tab was selected if they included default type (#30805)
* Fixes issue where backup tab was selected if backups include default type

* fix enterprise empty state assertion
2025-06-02 10:29:48 -07:00
claire bontempo
d82d82ef80
UI: Fix direct login link for auth mounts (#30800)
* fix typos, check for supported auth method and render direct link in display view too

* add namespace

* linebreak

* add tests
2025-06-02 09:05:04 -07:00
claire bontempo
71071183a6
UI: Rename "UI Login Rules" to "UI Login Settings", revert messages link back to "Custom messages" (#30767)
* change name back to "Custom messages"

* rename to "UI Login Settings"

* fix casing

* unused seletor

* fix comment typo
2025-05-28 08:22:31 -06:00
claire bontempo
2d0587f316
UI: Improve namespace input UX (#30751)
* yield namespace input and update tests

* add refocus logic

* more tests!
2025-05-27 16:41:01 -07:00
claire bontempo
45fee5c225
UI: (Enterprise) Login form customization feature (#30700)
* add request for custom login settings to auth route

* add tests to page integration before updating logic

* make tab component tests

* move form state logic to parent page component

* test updates for sanitizing query param in auth route

* add custom login feature

* add test for fetching login settings on ent only

* add changelog

* reword changelog

* rename variable from showOtherMethods to showAlternateView

* cleanup store

* cleanup comments per PR feedback

* abc

* VAULT-34672 render line breaks in description

* update endpoints after testing with live api

* add test coverage

* word

* remove backup types from test-ns for testing

* change to manually log in

* add error handling for no login settings

* add inheritance badge and make list item linkable
2025-05-22 15:13:14 -07:00
claire bontempo
6964c093e7
UI: Make single method views consistent, add max width (#30660)
* update single method to match single tab view

* add max-widht

* update tests

* convert page component to typescript

* add azure to icons, update custom-login mirage scenario

* update assertion count
2025-05-19 08:57:45 -05:00
claire bontempo
e8c196aa62
UI: Update template helpers and cleanup component args (#30580)
* make displayName a global helper

* rename authTabTypes to visibleMountsByType

* remove superfluous arg

* move all of mount displaying to component

* rename hasMountData to isVisibleMount, update comment
2025-05-12 11:13:24 -07:00
claire bontempo
c893d8c52b
Attempt to stabilize flaky saml test (#30570)
* stabilize saml test

* add loading icons
2025-05-09 20:13:46 +00:00
claire bontempo
f730905313
UI: Move preselected auth type logic to Auth::FormTemplate (#30563)
* move preset logic to form template because it was confusing having it in the parent

* rename variable
2025-05-09 08:32:45 -07:00
claire bontempo
9832c90037
UI: Implement accessible auth form components (#30500)
* UI: Move `wrapped_token` login functionality to route (#30465)

* move token unwrap functionality to page component

* update mfa test

* remove wrapped_token logic from page component

* more cleanup to relocate unwrap logic

* move wrapped_token to route

* move unwrap tests to acceptance

* move mfa form back

* add some padding

* update mfa-form tests

* get param from params

* wait for auth form on back

* run rests

* UI: Add MFA support for SSO methods (#30489)

* initial implementation of mfa validation for sso methods

* update typescript interfaces

* add stopgap changes to auth service

* switch order backend is defined

* update login form for tests even though it will be deleted

* attempt to stabilize wrapped_query test

* =update login form test why not

* Update ui/app/components/auth/form/saml.ts

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>

---------

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>

* Move CSP error to page component (#30492)

* initial implementation of mfa validation for sso methods

* update typescript interfaces

* add stopgap changes to auth service

* switch order backend is defined

* update login form for tests even though it will be deleted

* attempt to stabilize wrapped_query test

* =update login form test why not

* move csp error to page component

* move csp error to page component

* Move fetching unauthenticated mounts to the route (#30509)

* rename namespace arg to namespaceQueryParam

* move fetch mounts to route

* add margin to sign in button spacing

* update selectors for oidc provider test

* add todo delete comments

* fix arg typo in test

* change method name

* fix args handling tab click

* remove tests that no longer relate to components functionality

* add tests for preselectedAuthType functionality

* move typescript interfaces, fix selector

* add await

* oops

* move format method down, make private

* move tab formatting to the route

* move to page object

* fix token unwrap aborting transition

* not sure what that is doing there..

* add comments

* rename to presetAuthType

* use did-insert instead

* UI: Implement `Auth::FormTemplate` (#30521)

* replace Auth::LoginForm with Auth::FormTemplate

* first round of test updates

* return null if mounts object is empty

* add comment and test for empty sys/internal/mounts data

* more test updates

* delete listing_visibility test, delete login-form component test

* update divs to Hds::Card::Container

* add overflow class

* remove unused getters

* move requesting stored auth type to page component

* fix typo

* Update ui/app/components/auth/form/oidc-jwt.ts

make comment make more sense

* small cleanup items, update imports

* Delete old auth components (#30527)

* delete old components

* update codeowners

* Update `with` query param functionality (#30537)

* update path input to type=hidden

* add test coverage

* update page test

* update auth route

* delete login form

* update ent test

* consolidate logic in getter

* add more comments

* more comments..

* rename selector

* refresh model as well

* redirect for invalid query params

* move unwrap to redirect

* only redirect on invalid query params

* add tests for query param

* test selector updates

* remove todos, update relevant ones with initials

* add changelog

---------

Co-authored-by: lane-wetmore <lane.wetmore@hashicorp.com>
2025-05-08 09:58:20 -07:00
lane-wetmore
1e16abd3cc
UI: Update remaining copyright headers (#30504)
* update header formats for missed sidebranch files

* update more headers that did not fit format
2025-05-02 16:47:47 -05:00
claire bontempo
ba3f7363ae
PR: Set autocomplete="off" for new auth fields (#30444)
* set autocomplete to off

* add comment

* update test
2025-04-29 12:36:48 -07:00
claire bontempo
138e805cb0
UI: Build SAML auth component (#30435)
* initial saml component build

* cleanup, oops!

* remove unused vars, add check for login running

* initial round of tests

* poll out polling logic into separate method

* convert to typescript

* add test for insecure context

* remove unrelated comment
2025-04-29 12:24:21 -07:00
claire bontempo
bdf9c4efd5
UI: Smoke test and add mfa validation support for standard methods (#30424)
* =VAULT-34544 userpass

* update args for okta and oidc-jwt

* add todo

* VAULT-34551 tested github login

* VAULT-34550 tested radius login

* VAULT-34545 tested ldap login

* test token
2025-04-28 12:49:27 -07:00
claire bontempo
88f4180fcc
UI: Consolidates form parsing logic to base.ts component (#30397)
* stuck tests

* consolidate form parsing logic
2025-04-25 14:58:09 -07:00
claire bontempo
28f0f22490
UI: Builds OIDC-JWT component (#30371)
* finish okta auth method

* convert to ts

* move login fields down

* rename arg to prep for mfa business

* build oidc-jwt auth component

* add tests for oidc-jwt component

* add loading and button text states depending on config

* cleanup error handling, prep for ts

* convert to typescript

* minor cleanup items

* add comments
2025-04-25 10:12:31 -07:00
claire bontempo
03fbde820b
UI: Build Okta auth method component (#30316)
* finish okta auth method

* convert to ts

* move login fields down

* rename arg to prep for mfa business
2025-04-23 11:06:19 -07:00
claire bontempo
b00d986be7
UI: Assume default auth path if custom path is not provided (#30300)
* add default path and update base tests

* finish okta, oidc-jwt and saml tests

* fix test name
2025-04-21 11:28:22 -07:00
claire bontempo
d7e2b7bcd8
Auth test selector cleanup (#30283)
* first pass of selector cleanup

* fix control group test
2025-04-17 17:38:57 +00:00
claire bontempo
c4cfa371c1
UI: Build Auth::FormTemplate (#30257)
* move auth tests to folder

* polish auth tests

* build auth::form-template component

* add components for other supported methods

* add comments, add tests

* convert to typesript

* conver base.js to typescript

* use getRelativePath helper

* fix logic for hiding advanced settings toggle, use getter for selecting tab index

* update tests

* how in the heck did that happen

* add punctuation to comments, clarify var name

* update loginFields to array of objects

* update tests

* add helper text and custom label tests

* woops, test was in the beforeEach block
2025-04-17 08:36:00 -07:00
claire bontempo
c881782a52
UI: Add auth tests (#30033)
* rename page test to login form

* add username/password tests to auth page test

* add github and generalize tests

* finish standard auth types for page test

* add tests for onNamespaceInput

* fix accessibility violation

* add oidc provider qp test

* move helper into test

* move destructured arg

* address oidc auth method flakiness...maybe?

* cleanup unused fake window methods

* add comment why...

* fix diff

* fix header

* finish mfa acceptance tests move mfa selectors to folder
2025-03-28 12:45:10 -07:00
Jordan Reimer
df843a859a
updates copyright header formatting in hbs files (#29890) 2025-03-11 11:10:20 -06:00
claire bontempo
741721ad0e
UI: Fix MFA + SSO login workflow (#28873)
* =passback mfa_requirement for oidc login methods

* =pass SAML mfa requirement

* add comments

* add acceptance tests

* add helper

* update callback args for auth jwt

* add changelog

* update changelog

* is this line necessary?

* fetch token data for display name, this commit can be undone when BE fixes VAULT-32462

* change error handling, add comments

* update capitalization

* revert capitalization

* reword changelog

* clarify comments

* Update changelog/28873.txt
2024-12-17 11:06:20 -06:00
claire bontempo
d35a915f57
UI: Refactor auth controller so it does less (#27710)
* move some auth controller logic to route page component

* remove unused vars

* fix action handling so this context is retained

* rename authpage to auth-form-page

* rename auth-route-page to auth-splash-page

* link jira VAULT-28251

* wowww typo

* add padding to mfa form alert message

* update component name in tests

* alphabetize args

* use auth helpers for login method

* remove async, await

* rename components

* update jsdoc

* add comment
2024-07-15 10:49:06 -07:00
claire bontempo
2482674312
UI: Create starter Auth::Page component (#27478)
* move OktaNumberChallenge and AuthForm to AuthPage component

* return from didReceiveAttrs if component is being torn down

* update auth form test

* change passed task to an auth action

* update auth form unit test

* fix return

* update jsdoc for auth form

* add docs

* add comments, last little cleanup, pass API error to okta number challenge

* separate tests and move Auth::Page specific logic out of auth form integration test

* fix test typos

* fix page tests
2024-06-20 12:40:28 -07:00