Hello, I've setup an api and in the url parameters I pass CustomerUserLogin or UserLogin and Password and it works perfectly.
But now I've also setup TwoFactorAuthentication for some of my users and I want to authenticate with the api. I'ev tried a paremeter TwoFactorToken but it didn't work.
If someone knows how to authenticate with the TwoFactorAuthentication. Please let me know.
Thanks.
in the url parameters I pass CustomerUserLogin or UserLogin and Password and it works perfectly.
I'd strongly recommend some other way of passing authorized creds. Or at least trusting the source of the creds so you can accept the username and maybe a keyhash instead of a plaintext password.
But now I've also setup TwoFactorAuthentication for some of my users and I want to authenticate with the api.
My suggestion would be to ignore the MFA in the api or make sure the MFA works in the source authentication.
There are a lot of missing pieces to discuss to get this to be proper for your implementation. You are showing us in your screenshot how insecure your app is in the first place. There is never any good reason a password should be visible in a URI/URL.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Need help?Before you ask
You are showing us in your screenshot how insecure your app is in the first place.
I understand it is insecure, I am just testing, but if wanted what methods for authentication does OTRS provide, can I send a JSON body with the information, oAuth or do with headers Authorization Basic or a token??
My suggestion would be to ignore the MFA in the api or make sure the MFA works in the source authentication.
Is there a setting to disable MFA for the api in OTRS?
It really depends on what is the source of the data. I'm personally using AzureAD with Auth0 for SSO. Although I've also used Kerberos. But in both cases I've changed authentication to HTTPBasicAuth and focused on external authentication.
But this doesn't necessarily address the API part of it (except the idea that the API is available through the web interface).
I may not be the best source of information on this, so if you don't hear from me, it's just because I don't hang out too much here. Maybe someone else might be able to assist.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so. Need help?Before you ask
It really depends on what is the source of the data. I'm personally using AzureAD with Auth0 for SSO. Although I've also used Kerberos. But in both cases I've changed authentication to HTTPBasicAuth and focused on external authentication.
But this doesn't necessarily address the API part of it (except the idea that the API is available through the web interface).
I may not be the best source of information on this, so if you don't hear from me, it's just because I don't hang out too much here. Maybe someone else might be able to assist.
Thanks for the help.
Any idea on how to disable/ignore MFA for the api, is there any configuration I can do in the web service or in system configuration?
You should be able to use an additional AuthModule without 2FA to solve this. Znuny / OTRS uses only 2FA if there is a matching module configured for the AuthModule.
You should be able to use an additional AuthModule without 2FA to solve this. Znuny / OTRS uses only 2FA if there is a matching module configured for the AuthModule.
Hola, Como estan? tambien me esta pasando lo mismo tras implementacion de Two Factor. Me podrian dar mas detalle de la solucion que encontraron ? Desde ya muchas gracias.
Cabe destacar que antes de la implementacion del Two Factor, usaba este codigo el cual funcionaba perfectamente...