The Mock Authorisation page replicates the functionality of YBS OAuth Auhtorisation.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?scope=openid&response_type=code&redirect_url=<Redirect Url>&state=<State>&request=<JWT Token>

CHELSEA:

https://sandbox.ybs.co.uk/authorisation-mock-v1/che/index?scope=openid&response_type=code&redirect_url=<Redirect Url>&state=<State>&request=<JWT Token>

 

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 Customer ID to test the scenarios as mentioned below:

 

#

Scenario

Sample Output

1

Customer ID for Success Scenario:1000

authcode=xyz

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

Customer ID for Error Scenario 8:1008

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