Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

cookie..

세션..

인증 과정.. ?

토큰 발행 & 토큰 인증

Note

GET {{protocol}}://{{hostname}}:{{port}}/auth/mng/jwt

Code Block
{
    "result": "200",
    "resultMessage": "SUCCESS",
    "item": {
        "code": "unsigned",
        "role": [
            "anonymous"
        ],
        "lastAccessTime": 1603361554545,
        "sessionKey": "S0bmY-SFqgXXI0QhCcHo0qkcgKLrjDdiwojqFw5CC_mPPV4ai8KJN08V-ma9y7OYCSvZQ4XCpAR2wqJQF4jJ5w",
        "contextPath": "mng",
        "siteId": null,
        "projectId": "dxp"
    }
}

Note

GET {{protocol}}://{{hostname}}:{{port}}/auth/adm/jwt

Code Block
{
    "result": "200",
    "resultMessage": "SUCCESS",
    "item": {
        "code": "unsigned",
        "role": [
            "anonymous"
        ],
        "lastAccessTime": 1603361571040,
        "sessionKey": "ChajS7UWvDnf5AP2p8-B3QZpT7Z-E-eFnzts5UHPHkyP4HtAqkaGU5zCSb3Lm922IqzMNcWgd2MpDlPbBFmiug",
        "contextPath": "adm",
        "siteId": null,
        "projectId": "dxp"
    }
}

Note

GET {{protocol}}://{{hostname}}:{{port}}/auth/svc/jwt?_siteId=

Code Block
{
    "result": "200",
    "resultMessage": "SUCCESS",
    "item": {
        "code": "unsigned",
        "role": [
            "anonymous"
        ],
        "lastAccessTime": 1603361581517,
        "sessionKey": "7Vs6jOlWsQ-87iXm8jxbda63mMhtS5J6ugUUrZ2SrA9rzr_ojNgZLTZ7RTr59tWU2ulN_Nwj2kYZckzRjmIBhQ",
        "contextPath": "svc",
        "siteId": "bestshop",
        "projectId": "dxp"
    }
}

로그인

  • required Param : id, password

...

Note

POST {{protocol}}://{{hostname}}:{{port}}/svc/signIn?_siteId=

  • 로그인 전/후 jwt JWT API Respons

{{protocol}}://{{hostname}}:{{port}}/auth/adm/jwt

...

Code Block
languagejson
{
    "result": "200",
    "resultMessage": "SUCCESS",
    "item": {
        "code": "signed",
        "role": [
            "admin::system",
            "system",
            "role::system",
            "system",
            "adminGroup::system",
            "system",
            "admin",
            "anonymous"
        ],
        "lastAccessTime": 1603086697514,
        "sessionKey": "ChajS7UWvDnf5AP2p8-B3QZpT7Z-E-eFnzts5UHPHkyP4HtAqkaGU5zCSb3Lm922IqzMNcWgd2MpDlPbBFmiug",
        "contextPath": "adm",
        "admin": {
            "id": "system",
        },
        "userId": "admin::system",
        "securityAgreement": false,
        "siteId": null,
        "userType": "admin",
        "userRole": "system",
        "projectId": "dxp"
    }
}

API Key

open, external apiType은 API 키를 통해서 인증필요

{{protocol}}://{{hostname}}:{{port}}/api/testEvent/list

Code Block
{
    "timestamp": "2020-10-20T02:45:39.969+0000",
    "status": 400,
    "error": "Bad Request",
    "message": "Required String parameter 'apiKey' is not present",
    "path": "/api/testEvent/list"
}

{{protocol}}://{{hostname}}:{{port}}/api/testEvent/list?apiKey=W2!GLgUu?5!c*VubLVsfVyW42t$KHt

Code Block

{
    "result": "200",
    "resultMessage": "SUCCESS",
    "totalCount": 0,
    "totalTypeCount": 0,
    "resultCount": 0,
    "items": []
}