Kayden
05/08/2024, 7:20 PMKayden
05/08/2024, 7:20 PMloginUrl
, but the exceptions I see in my Web Components test don't include such a field. I only see client
and backend
objects on the exception.Julius Kos
05/09/2024, 9:04 AMKayden
05/09/2024, 4:49 PM// ... define the logic for custom authentication flow
I linked that document because I was doing my best to follow that document ("See our documentation for more information on GoodData.CN authentication") as best I could.
Since (as you say) I'm not meant to use that linked page, where can I find more information about defining custom authentication logic for Web Components? An example would be greatly helpful, if possible.Moises Morales
05/20/2024, 9:03 AMfunction myAuthenticationHandler(authError) {
if (authError) {
console.log("There was an issue while authenticating:", authError);
// Redirect to login page or prompt user to reauthenticate
window.location.href = "/login";
} else {
console.log("Authentication successful!");
}
}
Since we already provide an authentication mechanism, any changes to it are possible but entirely up to you to implement. Customer use cases can vary widely, so we can’t offer a ‘one size fits all’ example. However, we hope the example above gives you a better idea of how to move forward.