Security API

post
Query parameters
organizationCodestringOptional
emailstringOptional
Responses
post
/api/security/cookies/login
200

OK

No content

post
Responses
post
/api/security/cookies/logout
200

OK

No content

Creates a new authentication cookie with the specified name and lifetime using the raw request body as the cookie value.

post

In contrast to security/cookies/generate endpoint, this endpoint makes no assumptions about the request body. This means you can POST whatever cookie name and cookie value you want (encoded/escaped or not) and this method tries to create a new cookie for you. This is useful for testing the behaviour of the API when it receives unexpected (or corrupted) cookie tokens. Please note this endpoint is available in localhost environments only!

Query parameters
namestringOptional

The name of the cookie to create. If not provided, uses the default cookie name from API configuration settings.

lifetimeinteger · int32Optional

The lifetime of the cookie in seconds. If not provided, uses the default lifetime from API configuration settings.

Responses
post
/api/security/cookies/create
200

OK

No content

Decodes and deserializes a cookie token from the request body.

post
Responses
post
/api/security/cookies/decode
200

OK

No content

Generates a new authentication cookie using the provided token from the request body.

post
Responses
post
/api/security/cookies/generate
200

OK

No content

Introspects the current authentication cookie and returns detailed information about the authentication and authorization status.

get
Authorizations
InSite.WebTokenstringRequired
Responses
get
/api/security/cookies/introspect
200

OK

No content

Validates a cookie token from the request body without setting it as an authentication cookie.

post
Responses
post
/api/security/cookies/validate
200

OK

No content

post
Path parameters
languagestringRequired
Responses
post
/api/security/cookies/change-language/{language}
200

OK

No content

post
Path parameters
themestringRequired
Responses
post
/api/security/cookies/change-theme/{theme}
200

OK

No content

post
Responses
post
/api/security/passwords/hash
200

OK

No content

get
Authorizations
SecretstringRequired
Responses
get
/api/security/secrets/introspect
200

OK

No content

post
Body
debugbooleanOptional
secretstring · nullableOptional
lifetimeinteger · int32 · nullableOptional
organizationstring · uuid · nullableOptional
agentstring · uuid · nullableOptional
subjectstring · uuid · nullableOptional
Responses
post
/api/security/tokens/generate
200

OK

No content

get
Authorizations
BearerstringRequired
Responses
get
/api/security/tokens/introspect
200

OK

No content

post
Responses
post
/api/security/tokens/validate
200

OK

No content

Last updated

Was this helpful?