cbasolutions / osTicket-Plugins

Repository of Plugins for osTicket
MIT License
8 stars 8 forks source link

LOGIN_TYPE cookie set as CLIENT and AGENT #8

Open mvaneijken opened 3 years ago

mvaneijken commented 3 years ago

The LOGIN_TYPE cookie is set als CLIENT and AGENT when trying to sign-in as an agent. This results in a redirect after login to https://osticket/login.php instead of https://osticket/scp/login.php

Steps to reproduce:

  1. Open https://osticket/login.php
  2. Click Sign In
  3. Click I'm an agent — sign in here
  4. Click Sign in with Microsoft
  5. After successful sign-in, redirected to https://osticket/login.php instead of https://osticket/scp/login.php

Analysis:

This issue occurs when both agent and client login via auth-openid-ms is configured. When following the steps above two LOGIN_TYPE cookies are set: image