The Mock Authorisation page replicates the functionality of YBS OAuth Authorisation.It can be used by the TPP for testing the authorisation journey of a registered customer of YBS.

In order to use this page you have to register as a TPP in our sandbox environment.

Below are the sample URL's that can be used for testing the Mock Authorisation page.Refer to the open banking site for more details regarding the request parameters:

YBS:

https://sandbox.ybs.co.uk/authorisation-mock-v1/ybs/index?request=<jwt>&redirect_uri=<url>&scope=openid accounts&response_type=code&client_id=<ClientID>

CHELSEA:

https://sandbox.ybs.co.uk/authorisation-mock-v1/che/index?request=<jwt>&redirect_uri=<url>&scope=openid accounts&response_type=code&client_id=<ClientID>

Example encoded JWT:

eyJraWQiOiJidzI0aHFweklQUk5pc2lFcVNBa3JIeTc4MlUiLCJ0eXAiOiJKV1QiLCJhbGciOiJQUzI1NiJ9.eyJhdWQiOiJodHRwczpcL1wvb2IteWJzLnNhbmRib3gueWJzLmNvLnVrIiwic2NvcGUiOiJvcGVuaWQgYWNjb3VudHMiLCJjbGFpbXMiOnsiaWRfdG9rZW4iOnsib3BlbmJhbmtpbmdfaW50ZW50X2lkIjp7InZhbHVlIjoiYWlzcC1kYzQxOTBhMy0zODVkLTQyMmQtYjQzOC02ZWMwMTI4ZDY4NWMiLCJlc3NlbnRpYWwiOnRydWV9fX0sImlzcyI6IkVLZm9EcXJRRzRIcEgxbEV6T0drQjkiLCJyZXNwb25zZV90eXBlIjoiY29kZSIsInJlZGlyZWN0X3VyaSI6Imh0dHBzOlwvXC9maW50ZWNobGFicy1mYXBpLWNvbmZvcm1hbmNlLXN1aXRlLmZpbnRlY2hsYWJzLmlvXC90ZXN0XC9hXC9ZQlNfbm9ucHJvZFwvY2FsbGJhY2siLCJzdGF0ZSI6InVSblpFMGVFMG4iLCJleHAiOjE1NTU0MDQzMjksIm5vbmNlIjoiUDFMRzJGamhIMSIsImNsaWVudF9pZCI6IkVLZm9EcXJRRzRIcEgxbEV6T0drQjkifQ.XUjEQE2NLRs-k0fVylypmrwHTe93eSuhIrMRdzt3WP-1q6CVRdnfq8zqogm1AfSdBKkbWYt-QELz93aHv2cS4EMOEC0vX7si0D098HueA4gWpRmpzMY-GrllAsDB4OAlmweCXpY1y8PBKSTSjb9ZNxWlCtt_dx6CNH_cSPEr1EcBaq086Yr_aOa1labDZ8mBKhr8iIQiir6WkDZsc5Uf6vAJqAlgTsAGzQ8QcspiHl35GKn9bEg3smn4pLaT06n4Z-mrM6TxGfdoGpAbK4xEceX1QlXo-nvK8FU6JrQO6y4cH4NGfDN-S4alAtcetopLo4CI9ddax3HzKwjcxCDQbQ

Example decoded JWT:

Header

{

  "kid": "bw24hqpzIPRNisiEqrHy782U",
  "typ": "JWT",
  "alg": "PS256"
}

PayloadData

{
  "aud": "https://ob-ybs.sandbox.ybs.co.uk",
  "scope": "openid accounts",
  "claims": {
    "id_token": {
      "openbanking_intent_id": {
        "value": "aisp-dc4190a3-385d-2d-b438-6ec0128d685c",
        "essential": true
      }
    }
  },
  "iss": "EKfoDqrQG4HpH1lEzOGkB9",
  "response_type": "code",
  "redirect_uri": "https://redirecturl",
  "state": "uRnZE0eE0n",
  "exp": 1555404329,
  "nonce": "P1LG2FjhH1",
  "client_id": "qwewqeKfoDqrQG4HpH1"
}

If the request is successful then a login page will open.This can be used to test all the success or failure scenarios.

Enter the respective CustomerID to test the scenarios as mentioned below.

Note:The CustomerID in production will be a 10 digit number.The 4 digit CustomerID provided below are only for testing in sandbox.

 

#

Scenario

CustomerID

Sample Output

1

Success

1000

authcode=xyz

2 Error Scenario 1 1001 "Error" : "access_denied" , "ErrorDesc" : ""
3 Error Scenario 2 1002 "Error" : "request_uri_not_supported" , "ErrorDesc" : ""
4 Error Scenario 3 1003 "Error" : "invalid_scope" , "ErrorDesc" : ""
5 Error Scenario 4 1004 "Error" : "unsupported_response_type" , "ErrorDesc" : ""
6 Error Scenario 5 1005 "Error" : "access_denied" , "ErrorDesc" : "Standing Order Authorisation delayed"
7 Error Scenario 6 1006 "Error" : "access_denied" , "ErrorDesc" : "CBPII fund confirmation Authorisation delayed"
8 Error Scenario 7 1007 "Error" : "access_denied" , "ErrorDesc" : "Customer declined authentication"
9

Error Scenario 8

1008 "Error" : "Temporarily unavailable" , "ErrorDesc" : ""
10 Error Scenario 9 1009 "Error" : "access_denied" , "ErrorDesc" : "User Cancel Authorisation"
11 Error Scenario 10 1010 "Error" : "access_denied" , "ErrorDesc" : "Payment Authorisation Cancelled by Customer"
12 Error Scenario 11 1011 "Error" : "access_denied" , "ErrorDesc" : "Invalid Creditor Account"
13 Error Scenario 12 1012 "Error" : "access_denied" , "ErrorDesc" : "User Cancel Authorisation"
14 Error Scenario 13 1013 "Error" : "server_error" , "ErrorDesc" : ""