🔧 test: Add fallback test for userinfo roles with invalid id_token

This commit is contained in:
Ruben Talstra 2025-04-05 14:04:40 +02:00
parent 1083014464
commit f74b9a3018
No known key found for this signature in database
GPG key ID: 2A5A7174A60F3BEA

View file

@ -300,8 +300,6 @@ describe('setupOpenId', () => {
expect(fetch).not.toHaveBeenCalled();
});
// --- Additional tests ---
it('should fallback to userinfo roles if the id_token is invalid (missing a period)', async () => {
// Arrange simulate an invalid id_token and ensure userinfo.roles contains the required role
const invalidTokenSet = { ...validTokenSet, id_token: 'invalidtoken' };