La multimarca le permite controlar todas las marcas de su compañía en una sola cuenta de Zendesk Support. Sin embargo, la configuración de seguridad solo le permite configurar un URL para los inicios de sesión remotos, algo que puede ser problemático si tiene varias bases de datos de usuarios para cada una de sus marcas.
El nuevo método le permitirá crear un script entre Zendesk Support y el script de inicio de sesión único (SSO) en su servidor con el que podrá dirigir a los clientes a URL específicos conforme a la marca a la que deseen acceder.
Este procedimiento supone que ya ha configurado JWT en su servidor. Si no es así, asegúrese de seguir las instrucciones que se describen en el artículo Activar el inicio de sesión único con JWT.
El ejemplo en este artículo utiliza PHP, pero se puede adaptar a otros lenguajes si fuera necesario.
Este artículo contiene las siguientes secciones:
- Dos o más marcas o más configuración
- Dos o más sistemas de autenticación de usuario configurados con SSO con JWT
- Los scripts
- Actualizar configuración de seguridad
- Consideraciones importantes
- Resolución de problemas
Configuración de dos o más marcas
Se tienen que configurar por lo menos dos marcas para poder seguir este procedimiento. Si desea ver detalles, consulte Configuración de varias marcas (complemento de Professional, incluido en Enterprise).
Después de configurarlas, guarde el URL de la marca y el URL de la marca con mapeo de host. Los usaremos con el script más adelante.
Dos o más sistemas de autenticación de usuario configurados con SSO con JWT
Como se mencionó anteriormente, tiene que tener configurado el SSO con JWT en sus sistemas de autenticación de usuario. Podría tener uno por cada marca, pero tome en cuenta que el secreto compartido que obtiene de sus opciones de seguridad tiene que ser el mismo en todos los sistemas de autenticación.
Guarde el URL de inicio de sesión y el URL de cierre de sesión junto con la información de la sección anterior.
Los scripts
La lista de URL guardados podría ser parecida a esta:
Marca 1
URL sin mapeo de host: https://brand1.zendesk.com
URL con mapeo de host: https://support1.example.com
Marca 2
URL sin mapeo de host: https://brand2.zendesk.com
URL con mapeo de host: https://support2.example.com
Sistema 1
URL de inicio de sesión: https://page1.example.com/zdlogin.php
URL de cierre de sesión: https://page1.example.com/zdlogout.php
Sistema 2
URL de inicio de sesión: https://page2.example.com/zdlogin.php
URL de cierre de sesión: https://page2.example.com/zdlogout.php
A continuación, cree el script. Elimine https:// del URL para el URL de cada marca. Consérvelos en los vínculos de sitio web.
Estos scripts también se pueden encontrar aquí:
Script de inicio de sesión
<?
$brand_URLs = array(
"brand1.zendesk.com" => "https://page1.example.com/yourcustomloginjwtscript.php",
"support1.example.com" => "https://page1.example.com/yourcustomloginjwtscript.php",
"brand2.zendesk.com" => "https://page2.example.com/yourcustomloginjwtscript2.php",
"support2.example.com" => "https://page2.example.com/yourcustomloginjwtscript2.php"
);
foreach($brand_URLs as $k => $v){
if(strpos($_GET['return_to'],$k)){
header("Location: ". $v);
die();
}
}
?>
Script de cierre de sesión
<?
$brand_URLs = array(
"brand1.zendesk.com" => "https://page1.example.com/yourcustomlogoutjwtscript.php",
"support1.example.com" => "https://page1.example.com/yourcustomlogoutjwtscript.php",
"brand2.zendesk.com" => "https://page2.example.com/yourcustomlogoutjwtscript.php",
"support2.example.com" => "https://page2.example.com/yourcustomlogoutjwtscript.php"
);
foreach($brand_URLs as $k => $v){
if(strpos($_GET['return_to'],$k)){
header("Location: ". $v);
die();
}
}
?>
Actualizar configuración de seguridad
- En el Centro de administración, haga clic en
Cuenta en la barra lateral y luego seleccione Seguridad > Inicio de sesión único.
- Haga clic en Crear configuración de SSO y luego seleccione Token Web JSON.
- Ingrese un Nombre de configuración único.
- Para el URL de inicio de sesión remoto, ingrese el script de inicio de sesión del URL.
- Para el URL de cierre de sesión remoto, ingrese el script de cierre de sesión del URL.
- Para evitar conflictos si se da el caso de que algunos de sus clientes tienen una cuenta en más de un sistema de autenticación de usuarios con la misma dirección de correo electrónico, se sugiere seleccionar Activado para la opción ¿Actualizar ID externas?
- Proporcione el Secreto compartido al equipo de TI. Lo necesitarán para su implementación de JWT.
- Guarde los cambios.
Consideraciones importantes
- El riesgo de seguridad es reducido si usa el script tal como está. En cambio, si lo modifica considerablemente (excepto por los cambios aquí mencionados), podría crear una vulnerabilidad en la seguridad de su propio servidor (no el de Zendesk).
- Puesto que solo ofrecemos un token JWT, todos los scripts SSO usarán los mismos tokens en sus sistemas de autenticación. Si uno de sus sistemas se ve comprometido, existe la posibilidad de que todas sus marcas se vean comprometidas.
- Si recibe un error "Solicitud de JWT no válida" cuando intenta usar SSO, consulte las instrucciones de Resolución de problemas a continuación.
Resolución de problemas
Para evitar errores de solicitud de JWT no válida, codifique https://(subdominiopredeterminado).zendesk.com/ como /access/jwt?jwt=
para ambas marcas donde (subdominiopredeterminado) es el subdominio de la marca principal. Por ejemplo, midominio.zendesk.com.
- Codifique https://(subdominiopredeterminado).zendesk.com en un script de SSO, para que la carga JWT siempre sea enviada a https://(subdominiopredeterminado).zendesk.com/access/jwt
- Implemente ese fragmento en el script para usar “return_to” para que el usuario final sea redirigido de nuevo al Centro de ayuda de origen. Asegúrese de anexar la carga para los URL de ambas marcas como fijos “(subdominiopredeterminado)” y anexe “return_to”.
El fragmento para su referencia:
if(isset($_GET["return_to"])) {
$location .= "&return_to=" . urlencode($_GET["return_to"]);
}
30 comentarios
Gerald B.
Hi Sarah.
Apologies for the wait regarding your question.
User passwords are not brand restrictive within Zendesk. You would need to implement custom routing based to the brand URL that you created. You can also toggle the SSO setting for end users to "Let them choose" which would give them the option for a Zendesk Login or SSO. You can customize the SSO button's text to signal they users to sign in using the correct method.
https://support.zendesk.com/hc/en-us/articles/5380943678106-Giving-users-different-ways-to-sign-into-Zendesk
I'll set this to Solved for now, but if you have an further questions, please raise a ticket and we will be happy to help troubleshoot for you.
0
Gerald B.
Thank you for contacting the Zendesk Support Advocacy team. My name is Gerald and I'll be assisting you today.
I understand that you want to setup a method to allow agents and admins to reset their passwords by brand. I'm looking into options for you now.
0
Sarah Cullerton
Have this set up but have run into issues with the password reset loop. Brand 1 is SSO redirecting to /access/normal for those attempting to access Brand 2. We're able to get through admin managed password resets through the /password end point but anything going through the /verification endpoint like welcome emails or users resetting their own passwords for Brand 2 gets bounced to SSO. Any advice here so that we aren't relying solely on admins to manage end user credentials for an entire brand?
0
Marco
@ Chris
I think the answer is YES to both questions one and two. The big issue with Zendesk is that you have one single User Registry and one single Authentication status for the whole account. So, if you log into Zendesk via the Brand 2, you are automatically logged in Brand 1 as well. It doesn't matter if you're logged in via SSO or not, you are just authenticated, stop!
The only work-around I see is to restrict access to HelpCenters based on Users/Organizations tags (Users segmentation).
Let's hope to get some better official answer from Zendesk...
0
Chris Fassano
I have some questions regarding this scenario.
1. If a user is created through the SSO option via Brand 1, and then later goes to Brand 2 to log in, would they be presented with the option to reset their Zendesk password?
2. If yes, does that mean they would be able to log into Zendesk via the Brand 2 help center by using their Zendesk credentials rather than their 3rd party SSO credentials?
1
Tony Felicetta
Hello, I have been watching this thread for some time, and through various web searches have been unable to clearly define the steps needed. I am looking for an A-B-C checklist, I have most of it together but then it drops entirely at implementing the JWT login scripts.
For example:
1. Configure Okta SSO JWT authentication within Zendesk (COMPLETE)
2. Configure Multiple Brands within Zendesk (COMPLETE)
3. Configure Multiple Help Centers > 1 or 2 per brand (COMPLETE)
4. FACT - we are using Okta as the SSO solution passing the JWT to Zendesk (confirmed working) -- NEEDED is dependent upon the users email domain (@domain111.com, @domain222.com) this would direct the user to the necessary Help Center
5. QUESTION - where should the proposed login scripts reside, Zendesk or Okta or? This step is very vague and does not seem to describe "how" the JWT identifies the logged in user to direct them to the appropriate help center. For example, a user with email @domain111.com would be directed to support-domain111.zendesk.com , similarly if the user email domain is @domain222.com then they would be directed to support-domain222.zendesk.com .
0
Joyce
I can see that you open a messaging request for this concern and were advised to create Product Feedback for your use case.
0
Jason Wong
When setting up a JWT for end users to login vs. agents with SSO. the login page is missing the forgot password link. Any way to add that back? Our customers are unable to request a password reset.
0
Julio H
Currently, you can allow the end user to choose among several SSO options (Google, Microsoft, custom SSO...) or Zendesk default authentication (username and password).
For more information, please visit: Providing multiple sign-in options for team members and end users.
Unfortunately, there is not a simple way to achieve this. However, this could be possible to achieve, but using JWT and your own custom authentication. They customer A and B must login to your custom authentication system, and then via JWT, allow them to access Zendesk.
Or redirect all the login request to the SSO landing page, where you can have an option for them to select their type of account and show the login option for that type of account.
If you're this link: subdomain.zendesk.com/access/normal you will be able to only allow the user to login with username and password.
In any case, currently, this is not possible within Zendesk settings.
I've marked this conversation as product feedback for review, which means that your input will be aggregated as a part of our Voice of the Customer program that provides customer feedback to our product development teams.
In addition, I encourage you to create a new post in the General Product Feedback topic in our community to engage with other users who have similar needs and discuss possible workarounds. Conversations with a high level of engagement ultimately get flagged for product managers to review when they go through roadmap planning.
Specific examples, details about impact, and how you currently handle things are helpful for our product teams to understand the full scope of the need when working on solutions. You may also want to review the Product feedback guidelines and how to write an effective feedback post [https://support.zendesk.com/hc/en-us/articles/4413820079386-Giving-Product-Feedback-at-Zendesk-].
We truly value customer feedback and your voice and votes in the forums help influence future Zendesk functionality.
Greetings.
0
Naoki Tanaka
ご質問の投稿ありがとうございます。
該当の件ですが、特に推奨はございませんので利用者がアクセスできるサーバーに当該のスクリプトが動作するページを作成いただければと思います。
ご確認よろしくお願いいたします。
0
Iniciar sesión para dejar un comentario.