{"collection":{"info":{"_postman_id":"a8e6a43f-5c3c-408f-b875-0ef73a4a57ef","name":"WSO2 IS DCR","description":"### 🏃🏻‍♂️ Dynamic Client Registration\n\nThe DCR endpoint in WSO2 IS, allows you to dynamically create, update, delete, and get information on the clients.\n\n#### 📌 Register an OAuth Application\n\nTo register an OAuth application you can run the following cURL command.\n\n``` bash\ncurl -k -X POST -H \"Authorization: Basic <Base64_encoded_username:password>\" -H \"Content-Type: application/json\" -d &#x27;{\n\"client_name\": \"<application_name>\",\n\"grant_types\": [\"<grant_types>\"], \n\"ext_param_client_id\":\"<client_id>\", \n\"ext_param_client_secret\":\"<client_secret>\" }&#x27; \n\"https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/register\"\n\n ```\n\nAn example cURL command using the above format will be,\n\n``` bash\ncurl -k -X POST -H \"Authorization: Basic YWRtaW46YWRtaW4=\" -H \n\"Content-Type: application/json\" -d '{\n\"client_name\": \"application1\",\n\"grant_types\": [\"password\"], \n\"ext_param_client_id\":\"provided_client_id0001\", \n\"ext_param_client_secret\":\"provided_client_secret0001\" }' \n\"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register\"\n\n ```\n\nIf you want to include a `redirect_uri` with the cURL command, you can use the following cURL command instead.\n\n``` bash\ncurl -k -X POST -H \"Authorization: Basic YWRtaW46YWRtaW4=\" -H \n\"Content-Type: application/json\" -d '{\n\"client_name\": \"application1\",\n\"grant_types\": [\"password\"], \n\"redirect_uris\": [\"http://localhost:8080/playground2/oauth2client\"],\n\"ext_param_client_id\":\"provided_client_id0001\", \n\"ext_param_client_secret\":\"provided_client_secret0001\" }' \n\"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register\"\n\n ```\n\n#### 📌 Update an OAuth Application\n\nTo update an already created OAuth application, you can use the following cURL command.\n\n``` bash\ncurl -k -X PUT -H \"Authorization: Basic <Base64_encoded_username:password>\" -H\n\"Content-Type: application/json\" -d '{\n\"redirect_uris\":[\"<callback_url>\"],\n\"client_name\": \"<application_name>\",\n\"grant_types\": [\"<grant_types>\"] }&#x27;\n\"https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/register/<client_id>\"\n\n ```\n\nAn example cURL command using the above format will be,\n\n``` bash\ncurl -k -X PUT -H \"Authorization: Basic YWRtaW46YWRtaW4=\" -H\n\"Content-Type: application/json\" -d '{\n\"client_name\": \"application1\",\n\"grant_types\": [\"authorization_code\",\"password\",\"implicit\"],\n\"redirect_uris\":[\"https://client.example.org/callback\"] }'\n\"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register/provided_client_id0001\"\n\n ```\n\n#### 📌 Get application information\n\nTo get the application information, we can either use the client ID or the client name. If we want to get application information using the client ID, we can use the following cURL command.\n\n``` bash\ncurl -k -X GET -H \"Authorization: Basic <Base64_encoded_username:password>\" -H \"Content-Type: application/json\" -d &#x27;{}&#x27; \"https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/register/<client_id>\"\n\n ```\n\nAn example cURL command using the above format will be,\n\n``` bash\ncurl -k -X GET -H \"Authorization: Basic YWRtaW46YWRtaW4=\" -H \"Content-Type: application/json\" -d '{}' \"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register/provided_client_id0001\"\n\n ```\n\nIf you want to get the application information using the client name, you can use the following cURL command.\n\n``` bash\ncurl -k -X GET -H \"Authorization: Basic <Base64_encoded_username:password>\" -H \"Content-Type: application/json\" -d &#x27;{}&#x27; \"https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/register?client_name=<client_name>\"\n\n ```\n\nAn example cURL command using the above format will be,\n\n``` bash\ncurl -X GET -H \"Authorization: Basic YWRtaW46YWRtaW4=\" -H \"Content-Type: application/json\" -d '{}' \"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register?client_name=application1\"\n\n ```\n\n#### 📌 Delete an OAuth Application\n\nTo delete an OAuth application using the DCR endpoint, you can use the following cURL command.\n\n``` bash\ncurl -k -X DELETE -H \"Authorization: Basic <Base64_encoded_username:password>\" -H \"Content-Type: application/json\" -d &#x27;{}&#x27; \"https://<IS_HOST>:<IS_PORT>/api/identity/oauth2/dcr/v1.1/register/<client_id>\"\n\n ```\n\nAn example cURL command using the above format will be,\n\n``` bash\ncurl -k -X DELETE -H \"Authorization: Basic YWRtaW46YWRtaW4=\" -H \"Content-Type: application/json\" -d '{}' \"https://localhost:9443/api/identity/oauth2/dcr/v1.1/register/provided_client_id0001\"\n\n ```","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json","createdAt":"2024-03-02T07:24:50.000Z","updatedAt":"2025-02-05T08:02:04.000Z","lastUpdatedBy":"32637434","uid":"32637434-a8e6a43f-5c3c-408f-b875-0ef73a4a57ef"},"item":[{"name":"Create a new SP/Client without Client ID and Secret","id":"3dcf8042-4a6d-4b48-b95f-9cf1e6bac993","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{wso2_password}}","type":"string"},{"key":"username","value":"{{wso2_username}}","type":"string"}]},"method":"POST","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4="},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"client_name\": \"{{client_name}}\",\n    \"grant_types\": [\n        \"authorization_code\",\n        \"implicit\",\n        \"password\",\n        \"client_credentials\",\n        \"refresh_token\"\n    ],\n    \"redirect_uris\": [\n        \"{{redirect_uri_1}}\"\n    ]\n}"},"url":{"raw":"https://{{wso2is_base_url}}:{{wso2is_port}}/api/identity/oauth2/dcr/v1.1/register","protocol":"https","host":["{{wso2is_base_url}}"],"port":"{{wso2is_port}}","path":["api","identity","oauth2","dcr","v1.1","register"]}},"response":[],"createdAt":"2024-03-02T07:25:37.000Z","updatedAt":"2024-03-02T07:28:48.000Z","uid":"32637434-3dcf8042-4a6d-4b48-b95f-9cf1e6bac993"},{"name":"Create a new SP/Client with Client ID and Secret","id":"de15f118-716e-4050-96f5-86512163392e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{wso2_password}}","type":"string"},{"key":"username","value":"{{wso2_username}}","type":"string"}]},"method":"POST","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4="},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"client_name\": \"{{client_name}}\",\n    \"grant_types\": [\n        \"authorization_code\",\n        \"implicit\",\n        \"password\",\n        \"client_credentials\",\n        \"refresh_token\"\n    ],\n    \"ext_param_client_id\": \"{{client_id}}\",\n    \"ext_param_client_secret\": \"{{client_secret}}\",\n    \"redirect_uris\": [\n        \"{{redirect_uri_1}}\"\n    ]\n}"},"url":{"raw":"https://{{wso2is_base_url}}:{{wso2is_port}}/api/identity/oauth2/dcr/v1.1/register","protocol":"https","host":["{{wso2is_base_url}}"],"port":"{{wso2is_port}}","path":["api","identity","oauth2","dcr","v1.1","register"]}},"response":[],"createdAt":"2024-03-02T07:25:37.000Z","updatedAt":"2024-03-02T07:29:43.000Z","uid":"32637434-de15f118-716e-4050-96f5-86512163392e"},{"name":"Update SP with DCR","id":"b19b6610-0a8e-4111-a3fb-9a8a7ea70ae5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{wso2_password}}","type":"string"},{"key":"username","value":"{{wso2_username}}","type":"string"}]},"method":"PUT","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4="},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n    \"redirect_uris\": [\n        \"https://client.example.org/callback\"\n    ],\n    \"client_name\": \"playground_2\",\n    \"grant_types\": [\n        \"password\",\n        \"authorization_code\"\n    ]\n}"},"url":{"raw":"https://{{wso2is_base_url}}:{{wso2is_port}}/api/identity/oauth2/dcr/v1.1/register/{{client_id}}","protocol":"https","host":["{{wso2is_base_url}}"],"port":"{{wso2is_port}}","path":["api","identity","oauth2","dcr","v1.1","register","{{client_id}}"]}},"response":[],"createdAt":"2024-03-02T07:25:37.000Z","updatedAt":"2024-03-02T07:41:59.000Z","uid":"32637434-b19b6610-0a8e-4111-a3fb-9a8a7ea70ae5"},{"name":"Get SP Details with Client ID","id":"e18e4574-6d93-4925-a133-9e881d6ef8ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"168@Noctis","type":"string"},{"key":"username","value":"upekshani1","type":"string"}]},"method":"GET","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4="},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}"},"url":{"raw":"https://{{wso2is_base_url}}/api/identity/oauth2/dcr/v1.1/register/:clientID","protocol":"https","host":["{{wso2is_base_url}}"],"path":["api","identity","oauth2","dcr","v1.1","register",":clientID"],"variable":[{"key":"clientID","value":"pPVM3tZXDRQG9RV2ysEdYZgOIfoa"}]}},"response":[],"createdAt":"2024-03-02T07:25:37.000Z","updatedAt":"2025-09-01T12:27:54.000Z","uid":"32637434-e18e4574-6d93-4925-a133-9e881d6ef8ad"},{"name":"Get SP Details with Client Name","id":"3e6f89f8-656f-4513-a0a0-7e5f12ff5cc1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{wso2_password}}","type":"string"},{"key":"username","value":"{{wso2_username}}","type":"string"}]},"method":"GET","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4="},{"key":"Content-Type","value":"application/json"}],"url":{"raw":"https://{{wso2is_base_url}}:{{wso2is_port}}/api/identity/oauth2/dcr/v1.1/register?client_name={{client_name}}","protocol":"https","host":["{{wso2is_base_url}}"],"port":"{{wso2is_port}}","path":["api","identity","oauth2","dcr","v1.1","register"],"query":[{"key":"client_name","value":"{{client_name}}"}]}},"response":[],"createdAt":"2024-03-02T07:25:37.000Z","updatedAt":"2024-03-02T07:37:33.000Z","uid":"32637434-3e6f89f8-656f-4513-a0a0-7e5f12ff5cc1"},{"name":"Delete SP with DCR","id":"6e0cb00a-6b30-4525-a4e8-6d451f6e019d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":[{"key":"password","value":"{{wso2_password}}","type":"string"},{"key":"username","value":"{{wso2_username}}","type":"string"}]},"method":"DELETE","header":[{"key":"Authorization","value":"Basic YWRtaW46YWRtaW4="},{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{}"},"url":{"raw":"https://{{wso2is_base_url}}:{{wso2is_port}}/api/identity/oauth2/dcr/v1.1/register/{{client_id}}","protocol":"https","host":["{{wso2is_base_url}}"],"port":"{{wso2is_port}}","path":["api","identity","oauth2","dcr","v1.1","register","{{client_id}}"]}},"response":[],"createdAt":"2024-03-02T07:25:37.000Z","updatedAt":"2024-05-14T06:50:44.000Z","uid":"32637434-6e0cb00a-6b30-4525-a4e8-6d451f6e019d"}],"event":[{"listen":"prerequest","script":{"id":"4dbe258f-267b-4f7a-8b4d-faaa78befb74","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"95d45c3b-74ab-431c-bf30-c8537a4de895","type":"text/javascript","exec":[""]}}],"variable":[{"key":"wso2is_base_url","value":"localhost","type":"string"},{"key":"wso2is_port","value":"9443","type":"string"},{"key":"wso2_username","value":"admin","type":"string"},{"key":"wso2_password","value":"admin","type":"string"},{"key":"client_name","value":"playground_2","type":"string"},{"key":"redirect_uri_1","value":"http://localhost:8080/playground2/oauth2client","type":"string"},{"key":"client_id","value":"provided_client_id0001","type":"string"},{"key":"client_secret","value":"provided_client_secret0001","type":"string"}]}}