HTTP basic authentication Is that possible?

  • Used Zammad version: 2.4.x
  • Used Zammad installation source: (source, package, …)deb
  • Operating system: Debian 8.8
  • Browser + version: Actually Firefox

Expected behavior:

  • User login via URL like:
    http://my_user:my_password@my_zammad/#ticket/view/my_view

Actual behavior:

  • User can login via URL but the browser shows no item (no Dashboard etc.)

Hi
I like to access a view on my Zammad server.
I tried different user and groups.
But if I open the URl, Firefox shows a blank Zammad frontend.

I’m not sure it will be work?
HTTP basic authentication Is that possible?

Thanks

Hi @Trenga - It is! We actually use it on most of our controller tests. All you need to do is to make sure the Basic HTTP Authorization header is set properly: https://tools.ietf.org/html/rfc7617#section-2

Hi @thorsteneckel

Thanks for the fast help.
OK then I think I have another problem.
If I login with my URL I see this.
Neues%20Bild%20(29)

Are there any entries in your browser console? If you login with the same account via the regular login flow the result differs?

Hi
With the regular Iogin I get the normal zammad frontend.

Can you post your Login URL Example ?

Hi Max
Like this:

http://YXV0by0xNTI0NTU1MjgxLTU4MDg4NTp6YWJiaXg=@dv-ticketcenter/#ticket/view/offen
or
http://auto-1524555281-580885:$apr1$fTmqRh0F$Uh4V0KxiP.qH61o.R1Sy50
@dv-ticketcenter/#ticket/view/offen
or
http://auto-1524555281-580885:zabbix@dv-ticketcenter/#ticket/view/offen

Same user and password.

Do I need a specially setup on my nginx server like a .htpasswd file???

Trenga i dont understand your example for example my Usernam are teo@lula.com my Password helloworld and my zammad login site are login.ghueheiw.com how the use can now login to the Frontend from zammad with http ?

Hi @Max
Then I would be try:

http://teo@lula.com:helloworld@login.ghueheiw.com2

or
http://dGVvQGx1bGEuY29tOmhlbGxvd29ybGQ=@login.ghueheiw.com2 (created with a Basic Authentication Header Generator)

Good morning @thorsteneckel

Do we need a specially setup in the:
/etc/nginx/sites-available/zammad.conf

Thanks in advance. Have a nice long weekend.

If i search in the URL Bar from Firefox at http://teo@lula.com:helloworld@login.ghueheiw.com nothing happen. it only say that login.ghueheiw.com dont need login name and password. Should i activate in Zammad anything i only see http basic authentication with curl ?

That is also my question in our cummunity :slight_smile:

Hi @Max

Could you post a snap-shoot of your login page?

The Standard Zammad Login Page :

I thing nobody can help us :frowning: We need only a Link or an html / php code that allow to Login over extern login form to zammad i don’t want to login over the original zammad login form

Hi again

If I try
http://auto-1524555281-580885:$apr1$fTmqRh0F$Uh4V0KxiP.qH61o.R1Sy50
@dv-ticketcenter/#dashboard

Then I get a small windows like this:

Neues%20Bild%20(30)

1 Like

@Trenga i have the same problem too.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.