Auth Method list pagination (#4165)

* wip

* implement list pagination for auth methods

* remove unused code

* update tests to fix sorting

* address PR comments

* simplify query, add token tests

* change test name

* wip sql testing

* add boolean column to indicate whether auth methods should be returned to unauthenticated users, remove secrets from api response

* is_active_public not null

* remove secrets and unwrapping

* move not null to immediately after data migration

* order public_id descending

* fix(db): Fix auth method migrations (#4193)

* wip

* fix db tests

* fix failing api tests

* reverse order of create time and update time in test

---------

Co-authored-by: Michael Gaffney <mike@gaffney.cc>
This commit is contained in:
Michael MiltonandMichael Gaffney authored and Johan Brandhorst-Satzkorn committed 2024-01-05 07:43:21 -08:00
1 parent 0fad770d8a
commit 8d50a0913f
34 files changed
+4340 -445

No files matched your search

@@ -200,9 +200,9 @@ func TestList(t *testing.T) {
result, err := amClient.List(tc.Context(), global)
require.NoError(err)
require.Len(result.Items, 3)
genOIDCAM := result.Items[0]
genPWAM := result.Items[1]
genLDAPAM := result.Items[2]
genLDAPAM := result.Items[0]
genOIDCAM := result.Items[1]
genPWAM := result.Items[2]
pwAM, err := amClient.Create(tc.Context(), "password", global,
authmethods.WithName("bar"),