Authentication APIs
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.

Authentication APIs

Log in to a dashboard application

Overview

OverviewLogs in to the apps in dashboard runtime such as portal, monitoring or business-rules app.
API Context/login/{appName}
HTTP MethodPOST
Request/Response Format
application/x-www-form-urlencoded
RuntimeDashboard

Parameter description

ParameterTypeDescriptionPossible Values
appNamePath paramThe application to which you need to log in.portal/monitoring/business-rules
usernameBody paramUsername for the login
passwordBody paramPassword for the login
grantTypeBody paramGrant type used for the loginpassword/
          refresh_token
        
          
          authorization_code
        
rememberMe
Body paramWhether remember me function enabledfalse/true


curl command syntax

curl -X POST "https://analytics.wso2.com/login/{appName}" -H "accept: application/json" -H "Content-Type: application/x-www-form-urlencoded" -d "username={username}&password={password}&grantType={grantTypr}&rememberMe={rememberMe}"


Sample curl command

curl -X POST "https://localhost:9643/login/portal" 
-H "Content-Type: application/x-www-form-urlencoded" -d "username=admin&password=admin&grantType=password"

Sample output

{"authUser":"admin","pID":"71368eff-cc71-44ef","lID":"a60c1098-3de0-42fb","validityPeriod":3600}

Response

HTTP Status Code

200 or 404

For descriptions of the HTTP status codes, see HTTP Status Codes.

Log out of the dashboard application

Overview

OverviewLogs out of the dashboard application.
API Context/logout/{appName}
HTTP MethodPOST
Request/Response Formatapplication/json
RuntimeDashboard


curl command syntax

curl -X POST "https://analytics.wso2.com/logout/{appName}" -H "accept: application/json" -H "Authorzation: Bearer {access token}"


Sample curl command

curl -X POST "https://analytics.wso2.com/logout/portal" -H "accept: application/json" -H "Authorzation: Bearer 123456"

Sample output

N/A

Response

HTTP Status Code

200 or 404

For descriptions of the HTTP status codes, see HTTP Status Codes.


Redirect URL for login using authorization grant type

Overview

OverviewRedirects URL by the IS in authorization grant type - OAuth2.
API Context/login/callback/{appName}
HTTP MethodGET
Request/Response FormatJSON
RuntimeDashbaord

Parameter description

ParameterDescription
{appName}The application of which the URL needs to be redirected.


curl command syntax

 


Sample curl command

curl -X GET "https://localhost:9643/login/callback/portal"

Sample output

 

Response

HTTP Status Code

200 or 404

For descriptions of the HTTP status codes, see HTTP Status Codes.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.