Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

SwisscomTrustServices/AIS-Postman-Samples

Repository files navigation

About

This repository contains several Postman (https://www.postman.com/) samples which can be used when testing the AIS features.

Before starting to use these Postman samples have a look at our AIS reference guide and other references we provide.

Documentation Repository

AIS reference Guide

Demo Video: Postman Setup

Watcht the video

Demo Video: Postman Requests Walkthrough

Watch the video

Certificate used for AIS trial account

In order to use any of the trial signing requests, you will need to generate a certificate containing identifying information so that the trial customer will accept the requests. Please contact Servicedesk.ICT@swisscom.com for more information.

RA Samples Description

  • https://ras.scapp.swisscom.com/api/evidences/verify Verify Request: This request can be used to check if a user (phoneNumber) is already registered at the RA. Please note, that in the case of reinstalling the MobileID App without using the Backup Code this request response is still successful, but the user is not able to create a qualified signature without a re-identification.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/sign Sign Request (static): This is the same API call as Sign Request (OnDemand). The difference is that this request will trigger a static signature, for multiple documents, with no 2FA process involved

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/sign Sign Request (OnDemand): This API call can be used to request a MOBILE ID authentication in order to create a digital signature. The request is asynchronous and will trigger 2FA for the user's number. After the 2FA is confirmed, the Pending request must be used to complete the signing.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/pending Singing Service: Pending Request (OnDemand): This call is needed to collect the signature status. The status is pending until the user confirms the second factor using the MOBILE ID App.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/sign Sign Request (OnDemand & Templating): This is the same API call as Sign Request (OnDemand), with the difference that a template is used for the DistinguishedName, providing only variables and allowing AIS to fill the data automatically based on the registered mobile number (msisdn) provided.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/pending Pending Request (OnDemand & Templating): This call is needed to collect the signature status of the template request shown previously. The status is pending until the user confirms the second factor using the MOBILE ID App.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/sign Sign Request (OnDemand) Wrong Serial: This call can be used to test that providing an invalid serial number will prompt AIS to respond with an appropriate error when the pending request is used and 2FA is confirmed.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/pending Sign Request (OnDemand) Wrong Serial: This call is needed to collect the signature status of the invalid serial request shown previously. AIS will respond with an error message instead of a signature, advising the user to identify in RA.

  • https://ais.swisscom.com/AIS-Server/rs/v1.0/sign Timestamp: This call can be used to sign a document using only a timestamp, with no 2FA involved.

DSS Postman Sample Videos

How to place a Verify Call using Postman

Signing requests with and without templating using Postman

The Postman tool for API endpoint testing explained

How is the Distinguished Name composed and Postman example

What is a Distinguished Name and for is it usable

What is a claimed identity and for what is it usable

How to generate a certificate for digital signing using OpenSSL

Smart-Registration Service Demo Samples

ETSI Postman Samples Description

In order to use these Postman samples the user has to first generate a certificate signing request (CSR) and send it to our support team together with the application form. The following formular can be used:

Next, the user has to configure the certificate which he receives from the support team in Postman or any other used client. Details on how to configure a certificate in Postman can be seen in the first video linked at the top of the readme GitHub repo file.

More details on how to integrate the ETSI interface can be found here.

Standard Signing Flow:

PAR Based Signing Flow:

  • Postman samples are available by mid Aug. 2023 with the next RAX PROD release. Currently the samples are only in PRE-PROD available.

  • ParRequest: Generates a request_uri based on the customer's login_hint/claims that will be used to form the authentication URL containing the QR code. Used Endpoint /api/auth/realms/broker/protocol/openid-connect/ext/par/request

  • Auth: Generates an authentication URL containing the request_uri, redirect_uri, scope, state and nonce that can be opened via the browser to access the QR code for scanning with the MySwisscomApp/Futurae app.

CIBA Based Signing Flow:

  • Customer Futurae or MySwisscomApp account is needed.

  • QRCodeAuthorize: Generates a QR code containing the login_hint/claims used for authenticating a sign request. QR code must be scanned by the MySwisscomApp or Futurae app and authorized by the user. Used Endpoint /api/auth/realms/broker/protocol/openid-connect/oauth-authorize

  • CIBATokenGeneration: Generates an SAD token for the ETSI signing endpoint based on the QR code authentication used in the previous call. Used Endpoint /api/auth/realms/broker/protocol/openid-connect/oauth-token

ETSI Postman Sample Videos

Signing based on the ETSI interface and ZertES.

Standard Authenticaiton and Signing Flow:

PAR Based Authentication and Signing Flow:

CIBA Based Authenticaiton and Signing Flow:

About

This repository contains several Postman samples which can be used when testng AIS features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors