Login

Allow Conformance Test Tool (CTT) to login

The /login endpoint is required in order to pass Conformance Test Tool (CTT). The endpoint allows user to authenticate himself using username and password. After successful authentication if user grants permit to requested scopes redirection to Service Provider should happen.

POSThttps://isharetest.net/login
Header parameters
Body
username*string

Human user’s login name. Could be email, mobile phone number, nickname etc.

Example: "username"
password*any

Human user’s password.

Example: "password"
Response

Login was successful and single page application will be responsible for redirection to returnUrl parameter.

Request
const response = await fetch('https://isharetest.net/login', {
    method: 'POST',
    headers: {
      "Content-Type": "application/x-www-form-urlencoded"
    },
    body: JSON.stringify({
      "username": "username",
      "password": "password"
    }),
});
const data = await response.json();

Note

CTT is going to use low level of assurance because passing login when 2FA is enabled would be infeasible. Production environment should be way more secure and traditional authentication using credentials could be even disabled if there is a need to use more secure ways of logging in like biometrics, ID card logins etc.

Note

It is not mandatory to have exactly the same parameter names because CTT supports any parameter names for credentials.

Note

iSHARE documentation does not cover login failures because it’s only within Identity Providers scope.

Note

This page must be considered part of the iSHARE Trust Framework

Last updated

Logo

Copyright © 2024 iSHARE Foundation