---
sourceDocument: Australia Customer Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/customer-service-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Authenticate the ServiceNow components using OIDC

# Authenticate the ServiceNow components using OIDC {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Set up auto-login and log out using OpenID Connect (OIDC) authentication to enable single and simultaneous login and logout in your website and embedded components.

## Antes de Iniciar

You must use the default global code to enable login and logout functions on your ServiceNow instance.

Role required: sn_embeddable_core.emb_admin

## Por Que e Quando Desempenhar Esta Tarefa

Once the embeddable components are integrated into your website, you're automatically logged in to the ServiceNow instance when you access the website. Ensuring a secure and personalized experience. Similarly, logging out of the website should also log you out of the ServiceNow instance.  
Nota:  
The Identity Provider (IdP) application used on your website must be configured on ServiceNow® as well.

## Procedimento

1. Configure an OIDC IdP (Identity Provider) on your ServiceNow instance.  
   Nota:  
   * For more information, see [Multi-Provider single sign-on (SSO)](https://www.servicenow.com/docs/access?context=c_MultipleProviderSingleSignOn&version=australia&pubname=australia-platform-security&ft:locale=en-US).
   * The OIDC IdP should match the IdP that you use to log in to the website.
   {#authenticate-sn-webcomponents-oidc__ul_ebf_45k_bcc}
2. Synchronize user records on the IdP with your ServiceNow instance.  
   Verify that each website user is registered on the IdP and ServiceNow instance.
3. Implement code on the third-party website to trigger the login() and logout() functions for automatic login and logout.
   1. Use the login() function to authenticate the session on embedded components when you log in using IdP into the website.
   2. Use the logout() function to log out from an ServiceNow instance.
   {#authenticate-sn-webcomponents-oidc__substeps_vzq_s5k_bcc}

## Resultado

Auto-login and logout functions are configured and trigger each time you log in or log out from the ServiceNow instance and third-party website.

