Get Access Token
Collection: 0-WiseSso · Requests: 5
Overview
This collection logs you in to WEDA using a 5-step SSO flow and stores your accessToken in the environment. Every other collection depends on this token, so always run 0-WiseSso first.
Postman handles all the cookie management and redirect parsing automatically — you just run the requests in order.
Prerequisites
- Before You Start completed:
weda-coreenvironment configured withlogin,password,domain, andssoBaseUrl - Postman cookies cleared (recommended before each new session)
Auto-captured Variables
After this collection completes, the following variables are automatically set in your environment:
| Variable | Description |
|---|---|
accessToken | Bearer token required by all subsequent collections |
refreshToken | Used to renew accessToken without repeating the full SSO flow |
tenantId | Your WEDA tenant ID, extracted from the SSO redirect |
Steps
Run each request in order. Do not skip any.
1. External Login 302
Initializes the SSO session and establishes the login context.
- Script: pre-request clears cookies; post-request extracts
tenantId,client_id, andredirect_urifrom the 302 Location header - Result:
302 Found
2. Account Login
Submits your credentials using {{login}}, {{password}}, and {{tenantId}} from your environment — verify these are populated before sending.
- Script: post-request captures the
Identity.Permissionsession cookie - Result:
200 OK— response body contains your user profile (name, email, roles)