{"info":{"_postman_id":"c3e06247-587a-48fc-b47a-e4731809a433","name":"info oauth2 authorization server(oauth2.info-dsm.info)","description":"<html><head></head><body><p>It explains postman example for info oauth2 authorization server.</p>\n<p>You can explore info oauth2 server(ex. authorization-service, resource-service).</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15222398","collectionId":"c3e06247-587a-48fc-b47a-e4731809a433","publishedId":"2s93eYWYk4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2023-05-09T03:40:50.000Z"},"item":[{"name":"authorizationCode","id":"92e80a9c-637a-486d-8d43-847eee9e158d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"GET","header":[],"url":"https://oauth2.info-dsm.info/oauth2/authorize?client_id=test&redirect_uri={{redirect-url}}&scope={{scope}}&response_type=code&response_mode=query","description":"<p>You can request oauth2 temporary code with this api.</p>\n<p>reference: <a href=\"https://oidcdebugger.com/\">https://oidcdebugger.com/</a></p>\n","urlObject":{"protocol":"https","path":["oauth2","authorize"],"host":["oauth2","info-dsm","info"],"query":[{"key":"client_id","value":"test"},{"key":"redirect_uri","value":"{{redirect-url}}"},{"key":"scope","value":"{{scope}}"},{"key":"response_type","value":"code"},{"key":"response_mode","value":"query"}],"variable":[]}},"response":[],"_postman_id":"92e80a9c-637a-486d-8d43-847eee9e158d"},{"name":"exchangeCodeForTokens","id":"158359e9-c97b-4771-b625-0f8c7068ca59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"test"},{"key":"password","value":"a2e5b7f2-7d11-4e07-9e9a-1e2884038393"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[{"key":"grant_type","value":"authorization_code","type":"text"},{"key":"code","value":"{{oauth2-code}}","type":"text"},{"key":"redirect_uri","value":"{{redirect-url}}","type":"text"},{"key":"client_id","value":"test-client-id","type":"text","disabled":true},{"key":"client_secret","value":"test-client-secret","type":"text","disabled":true}]},"url":"https://oauth2.info-dsm.info/oauth2/token","description":"<p>Temporary code can be exchanged for accessToken and refreshToken.</p>\n<p>By default, in info-oauth2-service, accessToken's expireTime is 1 hour and refreshToken's expireTime is 12 hours.</p>\n<p>If you want to exchange code to access, refresh tokens, you have to set</p>\n<p>grant_type(in default, you can set authorization_code),</p>\n<p>code(temporary code that you received from authorizationCode(GET) api),</p>\n<p>redirect_uri(you have set at when register client. ex: <a href=\"http://localhost:8000\">http://localhost:8000</a>),</p>\n<p>client_id(you have set at when register client. ex: test-service),</p>\n<p>client_secret(you have recieved at when register client. ex: ''7f818631-b86e-4cce-97e4-dc5e60014ecf\")</p>\n","urlObject":{"protocol":"https","path":["oauth2","token"],"host":["oauth2","info-dsm","info"],"query":[],"variable":[]}},"response":[],"_postman_id":"158359e9-c97b-4771-b625-0f8c7068ca59"},{"name":"sendEmail","id":"f553a7dc-fc43-4b19-a071-2a436fd7b70d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"url":"https://oauth2.info-dsm.info/oauth2/client/email?email={{email}}","description":"<p>You have to send email code before register client, and send reigsterClieint request with received email code that has sent with this api.</p>\n","urlObject":{"protocol":"https","path":["oauth2","client","email"],"host":["oauth2","info-dsm","info"],"query":[{"key":"email","value":"{{email}}"}],"variable":[]}},"response":[],"_postman_id":"f553a7dc-fc43-4b19-a071-2a436fd7b70d"},{"name":"registerClient","id":"bee34fd0-c4f7-4397-b754-26f4a6303477","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"clientEmail\": \"jinwoo794533@gmail.com\",\n    \"redirectUris\": [\n        \"http://localhost:8000\"\n    ],\n    \"serviceName\": \"test-service\",\n    \"serviceDomainName\": \"http://localhost:8080\",\n    \"requireProofKey\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://oauth2.info-dsm.info/oauth2/client?code={{emailCheckCode}}","description":"<p>You can register your web app client for info-oauth2-service.</p>\n<p>You must have send email check code before try this job.</p>\n<p>If you have sent email code to your email, you can request client registration for this service with your emailCheckCode as parameter</p>\n","urlObject":{"protocol":"https","path":["oauth2","client"],"host":["oauth2","info-dsm","info"],"query":[{"key":"code","value":"{{emailCheckCode}}"}],"variable":[]}},"response":[],"_postman_id":"bee34fd0-c4f7-4397-b754-26f4a6303477"},{"name":"getUser","id":"a871cc39-a30b-403e-9d1a-5c4542541e81","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://oauth2.info-dsm.info/resource/user","description":"<p>If you want to use this api, you have to get token provided from authorization server(that has authorized from resource owner).</p>\n<p>If you get accessToken, you can set your header as \"Authorization\":\"Bearer \" + $accessToken. and you can request for this api.</p>\n","auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"},{"key":"scope","value":"<scope>"},{"key":"clientId","value":"test"},{"key":"clientSecret","value":"a2e5b7f2-7d11-4e07-9e9a-1e2884038393"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"tokenRequestParams","value":"<token-request-params>"},{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"tokenName","value":"<token-name>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"client_authentication","value":"<client_authentication>"}]},"isInherited":true,"source":{"_postman_id":"c3e06247-587a-48fc-b47a-e4731809a433","id":"c3e06247-587a-48fc-b47a-e4731809a433","name":"info oauth2 authorization server(oauth2.info-dsm.info)","type":"collection"}},"urlObject":{"protocol":"https","path":["resource","user"],"host":["oauth2","info-dsm","info"],"query":[],"variable":[]}},"response":[],"_postman_id":"a871cc39-a30b-403e-9d1a-5c4542541e81"}],"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"authUrl","value":"<auth-url>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"grant_type","value":"<grant_type>"},{"key":"scope","value":"<scope>"},{"key":"clientId","value":"test"},{"key":"clientSecret","value":"a2e5b7f2-7d11-4e07-9e9a-1e2884038393"},{"key":"refreshRequestParams","value":"<refresh-request-params>"},{"key":"tokenRequestParams","value":"<token-request-params>"},{"key":"authRequestParams","value":"<auth-request-params>"},{"key":"tokenName","value":"<token-name>"},{"key":"challengeAlgorithm","value":"<challenge-algorithm>"},{"key":"redirect_uri","value":"<redirect_uri>"},{"key":"client_authentication","value":"<client_authentication>"}]}},"event":[{"listen":"prerequest","script":{"id":"ae042ba4-b6b1-40ee-8280-7dfbcfec0aee","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"7576f691-586f-4b60-931d-5c92562dae1d","type":"text/javascript","exec":[""]}}],"variable":[{"key":"oauth2-client-id","value":"test"},{"key":"oauth2-client-secret","value":"a2e5b7f2-7d11-4e07-9e9a-1e2884038393"},{"key":"host-name","value":"oauth2.info-dsm.info"},{"key":"email","value":"jinwoo794533@gmail.com","disabled":true}]}