Skip to content

Commit

Permalink
Account for Obiba TOTP coming from Agate (#3995)
Browse files Browse the repository at this point in the history
Co-authored-by: Ramin Haeri Azad <[email protected]>
  • Loading branch information
kazoompa and Ramin Haeri Azad authored Jan 31, 2025
1 parent d8c8892 commit 5766d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opal-ui/src/boot/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const api = axios.create({
});

function requiresCode(response: AxiosResponse): boolean {
if (response && response.status === 401) return response.headers['www-authenticate'] === 'X-Opal-TOTP';
if (response && response.status === 401) return ['X-Opal-TOTP', 'X-Obiba-TOTP'].includes(response.headers['www-authenticate']);
return false;
}

Expand Down

0 comments on commit 5766d5f

Please sign in to comment.