fix: 🐛 OIDC authentications not properly showing username (#2930)
* fix: 🐛 properly show username for oidc auth method in user menu * test: 💍 fix admin ui tests * test: 💍 fix desktop ui tests * refactor: 💡 admin to not store username in authenticated object * refactor: 💡 use getter in app controller * test: 💍 POC for how we could update our tests to use auth account * refactor: 💡 remove unused service * test: 💍 fix all tests in ui/admin * test: 💍 revert one change * refactor: 💡 update ui/desktop w/ feedback + fix tests * refactor: 💡 add in error handling * refactor: 💡 cleanup unused service * test: 💍 fix e2e test selector ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-17231
This commit is contained in:
1 parent
838bc37243
commit
72f7c8a92d
195 files changed
+720
-1112
No files matched your search
@@ -12,7 +12,6 @@ import Service from '@ember/service';
|
||||
|
||||
const data = {
|
||||
authenticated: {
|
||||
username: 'admin',
|
||||
authenticator: 'authenticator:password',
|
||||
},
|
||||
};
|
||||
@@ -35,6 +34,7 @@ module('Integration | Component | settings-card/user', function (hooks) {
|
||||
class extends Service {
|
||||
data = data;
|
||||
isAuthenticated = true;
|
||||
username = 'admin';
|
||||
},
|
||||
);
|
||||
|
||||
@@ -55,6 +55,7 @@ module('Integration | Component | settings-card/user', function (hooks) {
|
||||
class extends Service {
|
||||
data = oidcData;
|
||||
isAuthenticated = true;
|
||||
username = 'admin';
|
||||
},
|
||||
);
|
||||
|
||||
@@ -75,6 +76,7 @@ module('Integration | Component | settings-card/user', function (hooks) {
|
||||
class extends Service {
|
||||
data = ldapData;
|
||||
isAuthenticated = true;
|
||||
username = 'admin';
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user