0% found this document useful (0 votes)
57 views6 pages

Demo OBRH SETUP

The document outlines a series of API calls for user authentication and OAuth user creation using a specific application ID. It details the request headers, body content, and expected responses for each step, including JWT token generation and user management. Additionally, it notes the impact of the IS_SSO_CONFIGURED setting on the login functionality and test case outcomes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views6 pages

Demo OBRH SETUP

The document outlines a series of API calls for user authentication and OAuth user creation using a specific application ID. It details the request headers, body content, and expected responses for each step, including JWT token generation and user management. Additionally, it notes the impact of the IS_SSO_CONFIGURED setting on the login functionality and test case outcomes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Demo:

OBRH setup.
POST: https://192.168.3.59:8112/api-gateway/platojwtauth

Headers:

appId:SECSRV001

Content-Type:application/json

Body:

{
"username": "RkNBVE9Q",
"password": "T3JhY2xlQDEyMw=="
}
Response:

"token":
"eyJhbGciOiJIUzUxMiJ9.eyJ0aWQiOiIiLCJzdWIiOiJGQ0FUT1AiLCJhdWQiOiJXRUIiLCJpYXQiOjE3Mzg5MTUy
MzgsImV4cCI6MjA5ODkxNTIzOH0.tEmFnwUD9oiDEOrp9riseapqKltFGm-
MvmCLHf79nu0JHA0igbx1I0w7utYPCqsY-GdLL_cNnNwAdRGB3-X3zg",

"userAlreadyLoggedIn": "N",

"expires_in": 360000000,

"home_entity_id": "DEFAULTENTITY",

"multi_entity_admin": "N",

"multi_entity_admin_locale": "",

"userId": "FCATOP"

SS:
Step2:

POST: https://192.168.3.59:8112/api-gateway/createOauthUsers
Headers:

appId:SECSRV001

Content-Type:application/json

userId:FCATOP

Body:

{
"UserList": [
{
"clientId": "ORACLE",
"clientSecret": "ORACLE123",
"validity": "5000"
}
]
}
Response:

"message": "success"

}
SS:

select * from platosecurity.oauth2_registered_client

Step:3

POST: https://192.168.3.59:8112/api-gateway/platojwtauth
Headers:
appId:SECSRV001

Content-Type:application/json

sourceCode:OBDX

userId:ORACLE

entityId:DEFAULTENTITY

Body:
T1JBQ0xF/ORACLE

T1JBQ0xFMTIz/Oracle@123

{
"username": "T1JBQ0xF",
"password": "T1JBQ0xFMTIz"
}
Response:

"super_user_locale": "",

"scope": "resource-server-read,resource-server-write",

"super_user": "N",

"token_type": "Bearer",

"entity_id": "DEFAULTENTITY",

"expires_in": "4999",

"token":
"eyJraWQiOiI3MzBmOTY5NC0zMWVjLTQxYTYtYmJhMy1mMzUwMWM1NTZjZjIiLCJhbGciOiJSUzI1NiJ9.e
yJzdWIiOiJPUkFDTEUiLCJhdWQiOiJPUkFDTEUiLCJuYmYiOjE3Mzg5MTU4NzEsImlzcyI6Imh0dHA6XC9cLzE5
Mi4xNjguMy41OTo3MTAzXC9hcGktZ2F0ZXdheSIsImV4cCI6MTczODkyMDg3MSwiaWF0IjoxNzM4OTE1O
DcxfQ.FA8mVpGoiNePtEQl2ntgf5wV-PgCwARUmolPymgIt0HM-
dkgdfq4ABweyaKErGrhH2f_konXOsYRYcTCtP-ZlajNKfGmf_kOCv1Y36AtwGeZ7GQ5hfAPf-
i26TaGgT6_R5nJx2l21MKFA5x1K21QrJhpoLCu-5jZKVbkYJ8HeF3vKMqWevRv078WNUICqh2DQc4Vz5U4-
f-rQ06jIFYQ2OuTLMc3fvwjAE317dDVqI2gClwLOBiogEyQ7Jq7-
HkGeeSHTEuwILipRI_SWQuDIOkZEopq9gQYZajO6oZzQVpkcqCMpVPGXEOB0eGuYx7zVKS2-
hnV9whWag1DQnPuBQ"

SS:
Note: If we need to create JWT token with source code then we need to use ouath user.

Headers:

appId:SECSRV001

Content-Type:application/json

sourceCode:OBDX

Body:

{
"username": "T1JBQ0xF",
"password": "T1JBQ0xFMTIz"
}

T1JBQ0xF /ORACLE

T1JBQ0xFMTIz/Oracle@123

Response:
In security_config table IS_SSO_CONFIGURED is false then poast man test cases are working and obbrn
is unable to login, if we make IS_SSO_CONFIGUREDtrue obbrn is login and post testcases are failing
same as in NBEKSA UAT.

You might also like