authentication

OAuth2 authentication.

post /auth/logout

Arguments
  • No arguments...

Definition
post /auth/logout

post /auth/login-form

Arguments
  • grant_typeoptionalstring

    -

  • usernameoptionalstring

    -

  • passwordoptionalstring

    -

Definition
post /auth/login-form
Attributes
  • access_tokenstring

    Access token, should be handled as an opaque value as the format may change in the future.

  • token_typestring

    OAuth2 token type, always "bearer".

  • expires_ininteger

    Duration in seconds.

  • rolesarray

    All roles of the user the token is associated with.

  • userIdinteger

    -

  • passwordWasNeverChangedboolean

    -

Example response
{ "access_token": "string", "token_type": "string", "expires_in": 0, "roles": [ "string" ], "userId": 0, "passwordWasNeverChanged": true }

get /auth/token-info

Arguments
  • No arguments...

Definition
get /auth/token-info
Attributes
  • usernamestring

    -

  • rolesarray

    -

  • expiryinteger

    -

Example response
{ "username": "string", "roles": [ "string" ], "expiry": 0 }

post /auth/login

Arguments
  • grant_typeoptionalstring

    -

Definition
post /auth/login
Attributes
  • access_tokenstring

    Access token, should be handled as an opaque value as the format may change in the future.

  • token_typestring

    OAuth2 token type, always "bearer".

  • expires_ininteger

    Duration in seconds.

  • rolesarray

    All roles of the user the token is associated with.

  • userIdinteger

    -

  • passwordWasNeverChangedboolean

    -

Example response
{ "access_token": "string", "token_type": "string", "expires_in": 0, "roles": [ "string" ], "userId": 0, "passwordWasNeverChanged": true }