Authentication through Login API

Purpose 

To access specific APIs from AppTrana , customers must complete authentication through Login API method. 

HTTP Method: Post 

Endpoint: https://tas.apptrana.com/wafportal/rest/loginService/login 

Headers: Type: Application/JSON 

Possible Responses

200- Success 

Sample Request:

{ 
    "userId": "Customer User ID", 
    "password": "Customer Password", 
    "code": "", 
    "tasPortal": true 
} 

Sample Response:

{
    "loggedInUser": {
        "id": 2733,
        "customerId": 2095,
        "longCustomerId": "g2qc91i5bcjpbb6mas1uf2qbrs",
        "displayName": "weekend work",
        "lastLogin": "Mar 20, 3:10 PM +0530",
        "timeZone": "IST",
        "customers": [
            {
                "name": "indusface01",
                "id": "2095",
                "longId": "g2qc91i5bcjpbb6mas1uf2qbrs"
            }
        ],
        "superUser": false,
        "loginId": "weekendwork@tafmail.com",
        "bitmapFlag": 8,
        "onboardingWizardFlag": false,
        "apptrana": true,
        "multipleCustomer": false
    },
    "eulaAccepted": true,
    "pciUser": false,
    "performanceTabEnabled": false,
    "customerWebsitesMap": {
        "7425": "plan72.qa-apptrana.info",
        "7434": "plan51.qa-apptrana.info",
        "7563": "21release01.qa-apptrana.info",
        "7435": "plan52.qa-apptrana.info",
        "7436": "plan53.qa-apptrana.info",
        "7564": "21release02.qa-apptrana.info",
        "7565": "ashish.qa-apptrana.info",
        "7437": "plan54.qa-apptrana.info",
        "7566": "onboarddev1111.qa-apptrana.info",
        "7438": "plan55.qa-apptrana.info",
        "7439": "planhb51.qa-apptrana.info",
        "7440": "planhb51.qa-apptrana.info_API",
        "7441": "planhb52.qa-apptrana.info",
        "7442": "planhb52.qa-apptrana.info_API",
        "7570": "api02.qa-apptrana.info",
        "7443": "planhb53.qa-apptrana.info",
        "7571": "postmanweb.qa-apptrana.info",
        "7444": "planhb53.qa-apptrana.info_API",
        "7445": "planhb54.qa-apptrana.info",
        "7446": "planhb54.qa-apptrana.info_API",
        "7447": "planhb55.qa-apptrana.info",
        "7448": "planhb55.qa-apptrana.info_API",
        "7577": "dummysite.test.com",
        "7582": "newadvance01.testapptrana.info",
        "7583": "newadvanceplus01.testapptrana.info",
        "7584": "newpremium01.testapptrana.info",
        "7457": "domain01.qa-apptrana.com",
        "7458": "domain02.testapptrana.com",
        "7459": "domain03.testapptrana.info",
        "7588": "newrelaseapi01.testapptrana.info",
        "7589": "newhybrid01.testapptrana.info",
        "7590": "newhybrid01.testapptrana.info_API",
        "7591": "newentpremium01.testapptrana.info",
        "7592": "www.netflix.com",
        "7466": "newuionboardprement.qa-apptrana.info",
        "7470": "domain04.qa-apptrana.info",
        "7601": "chatgpt.com",
        "7474": "api01.qa-apptrana.info",
        "7475": "hybrid001.qa-apptrana.info",
        "7476": "hybrid001.qa-apptrana.info_API",
        "7604": "test0403.qa-apptrana.info",
        "7479": "stripeonbord01.qa-apptrana.info",
        "7608": "0503customtest.qa-apptrana.info",
        "7480": "apidomian.qa-apptrana.info",
        "7626": "1003test.qa-apptrana.net",
        "7500": "abrarscantest.qa-apptrana.info",
        "7501": "vulnerability01.qa-apptrana.info",
        "7502": "vulnerability02.qa-apptrana.info",
        "7509": "bed.com",
        "7513": "www.gita.com",
        "7514": "abrarhybridtest.qa-apptrana.info",
        "7515": "abrarhybridtest.qa-apptrana.info_API",
        "7519": "www.fb.com",
        "7417": "plan44.qa-apptrana.info"
    },
    "customerGroupsMap": {
        "161": "test for 18:52",
        "163": "All sites group",
        "164": "group for all",
        "165": "help",
        "166": "test123",
        "167": "test1234",
        "168": "test12345",
        "169": "test for final",
        "174": "test for success message",
        "175": "checking for response",
        "145": "[ API ]",
        "146": "premium custome",
        "147": "premium credit customer",
        "148": "advance credit customer",
        "149": "ent advanceplus customer",
        "150": "ent premium customer",
        "151": "hybrid group",
        "152": "random selected group",
        "158": "advance plus user 2",
        "159": "custom group 11"
    },
    "logLevelMap": {
        "5": "Priority - All",
        "4": "Priority - Low",
        "3": "Priority - Medium",
        "2": "Priority - High",
        "1": "Priority - Critical"
    },
    "showCaptcha": false,
    "halfHourTzOffset": 11,
    "expiryStatusShow": false,
    "customerAdmin": true,
    "internalUser": false,
    "csrfToken": "aO$8hvWKXFiCFRwrGu28AqaDboHM0ZjF",
    "redirectToApplicationConfig": false,
    "createdByWas": false,
    "restrictedAdmin": false,
    "superUser": false
}

Was this helpful?