<commit_before>---
layout: post
title: Configuring SwissID Login into Custom Applications
description: Learn how to support SwissID login into your custom applications with ease.
date: 2018-07-24 18:30
category: Technical Guide, Identity
author:
  name: <NAME>
  url: https://twitter.com/HandsumQbn
  mail: <EMAIL>
  avatar: https://cdn.auth0.com/blog/guest-authors/peter-fernandez.png
design:
  bg_color: #4236c9
  image: https://cdn.auth0.com/blog/ml-kit-sdk/android-ml-kit-machine-learning-sdk-logo.png
tags:
- swissid
- oauth
- openid
- auth0
- social-connection
related:
- 2015-12-16-how-to-use-social-login-to-drive-your-apps-growth
- 2017-11-06-authenticated-identity-trusted-key-auth0
---

[SwissID](https://swissid.ch) is the standardized digital identity initiative for use across Switzerland. This initiative is a joint venture of state-affiliated businesses, financial institutions, and health insurance companies (including [Swiss Post](https://www.post.ch/en) and [SBB](https://www.sbb.ch/en/)) that provide a third party [Identity Provider](https://auth0.com/docs/identityproviders) service to application vendors. With SwissID, users retain exclusive ownership over their personal data making online transactions easier to process and, more importantly, more secure.

Usually, application vendors implementing support for SwissID would require a working knowledge of the [OAuth 2.0 protocol](https://auth0.com/docs/protocols/oauth2) and of the [OpenID Connect specification](https://auth0.com/docs/protocols/oidc). However, as [Auth0](https://auth0.com) now supports SwissID as a [Custom Social Connection](https://auth0.com/docs/extensions/custom-social-extensions), developers can easily integrate this identity provider into their applications. Also, alongside with SwissID, can support myriad of other Identity Provider services (such as Facebook, Google, Twitter, and LinkedIn) as well as add capabilities such as [Single Sign On](https://auth0.com/docs/sso/current) and [Multifactor Authentication](https://auth0.com/docs/multifactor-authentication).

## Signing up to SwissID

As an application vendor (a.k.a. a Relying Party) you will first need to sign-up to SwissID. Starting the sign-up process can be done by contacting SwissID in order to become a Business Partner: https://www.swissid.ch/en/business-partners#become-a-part-of-a-success-story. Signing up with SwissID involves providing information about your redirection URI’s, and in turn you will be provide you with – amongst other things – a Client ID and Client Secret which will be required in order to setup SwissID within you Auth0 tenant. For details on signing up with Auth0 in order to create an Auth0 tenant please visit https://auth0.com)       

## Setup a SwissID Custom Social Connection in Auth0
<commit_msg>signing up<commit_after>---
layout: post
title: Configuring SwissID Login into Custom Applications
description: Learn how to support SwissID login into your custom applications with ease.
date: 2018-07-24 18:30
category: Technical Guide, Identity
author:
  name: <NAME>
  url: https://twitter.com/HandsumQbn
  mail: <EMAIL>
  avatar: https://cdn.auth0.com/blog/guest-authors/peter-fernandez.png
design:
  bg_color: #4236c9
  image: https://cdn.auth0.com/blog/ml-kit-sdk/android-ml-kit-machine-learning-sdk-logo.png
tags:
- swissid
- oauth
- openid
- auth0
- social-connection
related:
- 2015-12-16-how-to-use-social-login-to-drive-your-apps-growth
- 2017-11-06-authenticated-identity-trusted-key-auth0
---

[SwissID](https://swissid.ch) is the standardized digital identity initiative for use across Switzerland. This initiative is a joint venture of state-affiliated businesses, financial institutions, and health insurance companies (including [Swiss Post](https://www.post.ch/en) and [SBB](https://www.sbb.ch/en/)) that provide a third party [Identity Provider](https://auth0.com/docs/identityproviders) service to application vendors. With SwissID, users retain exclusive ownership over their personal data making online transactions easier to process and, more importantly, more secure.

Usually, application vendors implementing support for SwissID would require a working knowledge of the [OAuth 2.0 protocol](https://auth0.com/docs/protocols/oauth2) and of the [OpenID Connect specification](https://auth0.com/docs/protocols/oidc). However, as [Auth0](https://auth0.com) now supports SwissID as a [Custom Social Connection](https://auth0.com/docs/extensions/custom-social-extensions), developers can easily integrate this identity provider into their applications. Also, alongside with SwissID, can support myriad of other Identity Provider services (such as Facebook, Google, Twitter, and LinkedIn) as well as add capabilities such as [Single Sign On](https://auth0.com/docs/sso/current) and [Multifactor Authentication](https://auth0.com/docs/multifactor-authentication).

## Signing up to SwissID

As an application vendor (a.k.a. a [Relying Party](https://auth0.com/identity-glossary#r)) you will first need to sign-up to SwissID. This process starts by [contacting SwissID in order to become a Business Partner](https://www.swissid.ch/en/business-partners#become-a-part-of-a-success-story). After the sign up with SwissID, you will have to provide information about your redirection URI’s. In return, SwissID will provide you a Client ID and a Client Secret. Keep handy this information as you will need both values while setting up SwissID within you Auth0 tenant.

## Signing up to Auth0

If you don't have an Auth0 account yet, <a href="https://auth0.com/signup" data-amp-replace="CLIENT_ID" data-amp-addparams="anonId=CLIENT_ID(cid-scope-cookie-fallback-name)">sign up for a free one right now</a>.

As part of [the free plan](https://auth0.com/pricing), you will get things like:
- 7,000 active users.
- Up to 2 [social identity providers](https://auth0.com/docs/identityproviders).
- Access to [Auth0's Passwordless feature](https://auth0.com/passwordless).

![Auth0 free plan](https://cdn.auth0.com/blog/swissid/auth0-free-plan.png)

While signing up to Auth0, you will have to define a _Tenant Domain_ (e.g., `your-company.auth0.com`) and you will have to choose a _Region_ (at the time of writing, three regions are available: US, Europe, and Australia). After that, you can complete your account creation and Auth0 will redirect you to your dashboard.

![Auth0 dashboard](https://cdn.auth0.com/blog/secure-your-gaming-company-with-auth0's-user-fraud-score-and-minfraud/auth0-dashboard.png)

## Setup a SwissID Custom Social Connection in Auth0

{'fraction_non_alphanumeric': 0.10164333536214243, 'fraction_numerical': 0.019172245891661596, 'mean_word_length': 4.801412180052957, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 36, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3525771', 'n_tokens_mistral': 1945, 'n_tokens_neox': 1851, 'n_words': 685}