40 lines
691 B
Plaintext
40 lines
691 B
Plaintext
meta {
|
|
name: Get Current Auth Session
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
get {
|
|
url: {{baseUrl}}/api/v1/auth/session
|
|
body: none
|
|
auth: bearer
|
|
}
|
|
|
|
auth:bearer {
|
|
token: {{jwtToken}}
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
}
|
|
|
|
docs {
|
|
# Get Current Auth Session (FR-AUTH-001)
|
|
|
|
Validates the caller's JWT bearer token against Keycloak (or deterministic identity mock)
|
|
and returns the active session state, subject identifier (`sub`), and assigned roles.
|
|
|
|
## Response 200 OK
|
|
```json
|
|
{
|
|
"authenticated": true,
|
|
"subject": "usr_01J8K...",
|
|
"roles": ["Mandi Buyer"]
|
|
}
|
|
```
|
|
|
|
## Response 401 Unauthorized
|
|
Returned when the session token is absent, invalid, or expired.
|
|
}
|
|
|