fix(console): set metadata value encoding to utf-8 (#6392)

* fix: set encoding to utf-8

* org metadata encoding

* user detail mgmt encoding

* utf-8 encoding decoding of saml applications

---------

Co-authored-by: Livio Spring <[email protected]>
This commit is contained in:
Max Peintner
2023-08-19 07:16:40 +00:00
committed by GitHub
co-authored by Livio Spring
parent aa2d547eb2
commit a141b8f3e7
5 changed files with 7 additions and 7 deletions
@@ -406,7 +406,7 @@ export class AuthUserDetailComponent implements OnDestroy {
this.metadata = resp.resultList.map((md) => {
return {
key: md.key,
value: Buffer.from(md.value as string, 'base64').toString('ascii'),
value: Buffer.from(md.value as string, 'base64').toString('utf8'),
};
});
})
@@ -508,7 +508,7 @@ export class UserDetailComponent implements OnInit {
this.metadata = resp.resultList.map((md) => {
return {
key: md.key,
value: Buffer.from(md.value as string, 'base64').toString('ascii'),
value: Buffer.from(md.value as string, 'base64').toString('utf-8'),
};
});
})