Zum Inhalt springen

Current sign-in state

GET
/api/v1/auth/session
curl --request GET \
--url https://example.com/api/v1/auth/session

Reports whether the caller has a valid session. Behind an SSO proxy with a matching trust token and no session cookie, creates a pangolin-sso session and sets the cookies.

Successful Response

Media typeapplication/json
SessionInfo
object
bootstrap
Bootstrap
boolean
bootstrap_variable
Bootstrap Variable
Any of:
string
csrf_token
Csrf Token
Any of:
string
scope
Scope
Any of:
string
Allowed values: read print admin
signed_in
required
Signed In
boolean
source
Source
Any of:
string
Allowed values: api-key pangolin-sso bootstrap
user
User
Any of:
string

Example

{
"bootstrap": false,
"scope": "read",
"source": "api-key"
}