Hvl Authentication Server

Havelsan authentication services info
More information: https://www.havelsan.com.tr
Contact Info: BIT_JAVA_ALTYAPI_YAZILIM_MIM_TK@havelsan.com.tr
Version: 5.1.0-SNAPSHOT
Apache License Version 2.0
https://www.apache.org/licenses/LICENSE-2.0

Access

Methods

[ Jump to Models ]

Table of Contents

AuthenticationAPI

AuthenticationSettingsAPI

AuthenticationVerificationAPI

AuthenticationAPI

Up
post /auth/complete-login-with-code
User login with the given code (completeLoginWithCode)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter

Return type

HvlResponseHvlAuthAuthenticationResponseModel

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : {
    "userModel" : {
      "profileName" : "profileName",
      "failedLoginCount" : 9,
      "userDetail" : {
        "updatedBy" : "updatedBy",
        "mobileNumber" : "mobileNumber",
        "nameSurname" : "nameSurname",
        "uuid" : "uuid",
        "version" : 1,
        "dateUpdated" : "2000-01-23T04:56:07.000+00:00",
        "personalIdentifier" : "personalIdentifier",
        "dateCreated" : "2000-01-23T04:56:07.000+00:00",
        "deleted" : true,
        "integrationCode" : "integrationCode",
        "createdBy" : "createdBy",
        "deletedDate" : "2000-01-23T04:56:07.000+00:00",
        "surname" : "surname",
        "name" : "name",
        "id" : 5,
        "userType" : {
          "parameterType" : "parameterType",
          "updatedBy" : "updatedBy",
          "code" : "code",
          "orderNo" : 7,
          "description" : "description",
          "shortDescription" : "shortDescription",
          "uuid" : "uuid",
          "version" : 5,
          "dateUpdated" : "2000-01-23T04:56:07.000+00:00",
          "dateCreated" : "2000-01-23T04:56:07.000+00:00",
          "deleted" : true,
          "integrationCode" : "integrationCode",
          "createdBy" : "createdBy",
          "deletedDate" : "2000-01-23T04:56:07.000+00:00",
          "id" : 2
        },
        "email" : "email"
      },
      "description" : "description",
      "dn" : "dn",
      "secret" : "secret",
      "uuid" : "uuid",
      "dateCreated" : "2000-01-23T04:56:07.000+00:00",
      "expired" : true,
      "lockDescription" : "lockDescription",
      "passwordUpdatedDate" : "2000-01-23T04:56:07.000+00:00",
      "id" : 6,
      "locked" : true,
      "tenant" : "tenant",
      "expirationDate" : "2000-01-23T04:56:07.000+00:00",
      "googleAuthenticatorEnabled" : true,
      "passwordMustChange" : true,
      "updatedBy" : "updatedBy",
      "ou" : "ou",
      "lockedDate" : "2000-01-23T04:56:07.000+00:00",
      "version" : 0,
      "dateUpdated" : "2000-01-23T04:56:07.000+00:00",
      "deleted" : true,
      "system" : true,
      "createdBy" : "createdBy",
      "deletedDate" : "2000-01-23T04:56:07.000+00:00",
      "username" : "username"
    },
    "attributeMap" : {
      "key" : { }
    }
  }
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseHvlAuthAuthenticationResponseModel

Up
post /auth/captcha-image-string
Generates captcha image string. (getCaptchaImageString)

Return type

HvlResponseString

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : "body"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseString

Up
post /auth/login
User login with the given username and password (login)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter

Return type

HvlResponseHvlAuthAuthenticationResponseModel

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : {
    "userModel" : {
      "profileName" : "profileName",
      "failedLoginCount" : 9,
      "userDetail" : {
        "updatedBy" : "updatedBy",
        "mobileNumber" : "mobileNumber",
        "nameSurname" : "nameSurname",
        "uuid" : "uuid",
        "version" : 1,
        "dateUpdated" : "2000-01-23T04:56:07.000+00:00",
        "personalIdentifier" : "personalIdentifier",
        "dateCreated" : "2000-01-23T04:56:07.000+00:00",
        "deleted" : true,
        "integrationCode" : "integrationCode",
        "createdBy" : "createdBy",
        "deletedDate" : "2000-01-23T04:56:07.000+00:00",
        "surname" : "surname",
        "name" : "name",
        "id" : 5,
        "userType" : {
          "parameterType" : "parameterType",
          "updatedBy" : "updatedBy",
          "code" : "code",
          "orderNo" : 7,
          "description" : "description",
          "shortDescription" : "shortDescription",
          "uuid" : "uuid",
          "version" : 5,
          "dateUpdated" : "2000-01-23T04:56:07.000+00:00",
          "dateCreated" : "2000-01-23T04:56:07.000+00:00",
          "deleted" : true,
          "integrationCode" : "integrationCode",
          "createdBy" : "createdBy",
          "deletedDate" : "2000-01-23T04:56:07.000+00:00",
          "id" : 2
        },
        "email" : "email"
      },
      "description" : "description",
      "dn" : "dn",
      "secret" : "secret",
      "uuid" : "uuid",
      "dateCreated" : "2000-01-23T04:56:07.000+00:00",
      "expired" : true,
      "lockDescription" : "lockDescription",
      "passwordUpdatedDate" : "2000-01-23T04:56:07.000+00:00",
      "id" : 6,
      "locked" : true,
      "tenant" : "tenant",
      "expirationDate" : "2000-01-23T04:56:07.000+00:00",
      "googleAuthenticatorEnabled" : true,
      "passwordMustChange" : true,
      "updatedBy" : "updatedBy",
      "ou" : "ou",
      "lockedDate" : "2000-01-23T04:56:07.000+00:00",
      "version" : 0,
      "dateUpdated" : "2000-01-23T04:56:07.000+00:00",
      "deleted" : true,
      "system" : true,
      "createdBy" : "createdBy",
      "deletedDate" : "2000-01-23T04:56:07.000+00:00",
      "username" : "username"
    },
    "attributeMap" : {
      "key" : { }
    }
  }
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseHvlAuthAuthenticationResponseModel

Up
get /auth/logout
Deletes the current token and redirects to the given page. The user becomes unable to use the system (logout)

Query parameters

redirect (optional)
Query Parameter

Return type

HvlResponseVoid

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : { }
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseVoid

Up
get /auth/refresh
Refreshes existing token. (refresh)

Return type

HvlResponseString

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : "body"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseString

AuthenticationSettingsAPI

Up
get /auth/setting/registration-enabled
Gets registration enabled setting value (getRegisterEnabled)

Return type

HvlResponseBoolean

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : true
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseBoolean

Up
get /auth/setting/register-user-detail-types
Gets register user detail type setting value (getRegisterUserDetailTypes)

Return type

HvlResponseString

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : "body"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseString

Up
get /auth/setting/two-factor-authentication-types
Gets two factor authentication types setting value (getTwoFactorAuthenticationTypes)

Return type

HvlResponseString

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : "body"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseString

Up
get /auth/setting/two-factor-authentication-verification-code-min-duration
Gets two factor authentication verification code min duration setting value (getTwoFactorAuthenticationVerificationCodeMinDuration)

Return type

HvlResponseLong

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : 0
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseLong

AuthenticationVerificationAPI

Up
get /verification/captcha
Generates captcha image. (captcha)

Return type

HvlResponseString

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : "body"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseString

Up
post /verification/exists
System verification is made with the given username and code is exist. (exists)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter

Return type

HvlResponseBoolean

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : true
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseBoolean

Up
post /verification/generate
Generates code to nad saves it. (generate)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter

Return type

HvlResponseString

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : "body"
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseString

Up
post /verification/validate
System verification is made with the given username and code is validated. (validate)

Consumes

This API call consumes the following media types via the Content-Type request header:

Request body

Body Parameter

Return type

HvlResponseBoolean

Example data

Content-Type: application/json
{
  "errorDetail" : {
    "errorClassName" : "errorClassName",
    "service" : "service",
    "errorMessage" : "errorMessage",
    "errorCode" : "errorCode",
    "errorDetail" : "errorDetail",
    "time" : "2000-01-23T04:56:07.000+00:00",
    "uuid" : "uuid",
    "errorArguments" : [ { }, { } ]
  },
  "body" : true
}

Produces

This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.

Responses

200

OK HvlResponseBoolean

Models

[ Jump to Methods ]

Table of Contents

  1. HvlAuthAuthenticationRequestModel
  2. HvlAuthAuthenticationResponseModel
  3. HvlAuthVerificationCodeModel
  4. HvlAuthVerificationRequestModel
  5. HvlErrorDetail
  6. HvlOAuthUserDetailModel
  7. HvlOAuthUserModel
  8. HvlOAuthUserTypeModel
  9. HvlResponseBoolean
  10. HvlResponseHvlAuthAuthenticationResponseModel
  11. HvlResponseLong
  12. HvlResponseString
  13. HvlResponseVoid

HvlAuthAuthenticationRequestModel Up

username
password (optional)
tenant (optional)
captchaVerificationCode (optional)
authenticationType (optional)
Enum:
DB
LDAP
EDEVLET
KERBEROS
API_KEY

HvlAuthAuthenticationResponseModel Up

userModel (optional)
attributeMap (optional)

HvlAuthVerificationCodeModel Up

email
code
tenant (optional)

HvlAuthVerificationRequestModel Up

verificationType (optional)
Enum:
NONE
SMS
MAIL
GA
captchaVerificationCode (optional)
verificationCodeModel (optional)

HvlErrorDetail Up

uuid (optional)
errorClassName (optional)
errorCode (optional)
errorDetail (optional)
errorMessage (optional)
service (optional)
time (optional)
Date format: date-time
errorArguments (optional)

HvlOAuthUserDetailModel Up

uuid
version (optional)
Integer format: int32
dateCreated (optional)
Date format: date-time
dateUpdated (optional)
Date format: date-time
createdBy (optional)
updatedBy (optional)
deleted
deletedDate (optional)
Date format: date-time
id
Long format: int64
name
surname
email (optional)
mobileNumber (optional)
userType (optional)
integrationCode (optional)
personalIdentifier (optional)
nameSurname (optional)

HvlOAuthUserModel Up

uuid
version (optional)
Integer format: int32
dateCreated (optional)
Date format: date-time
dateUpdated (optional)
Date format: date-time
createdBy (optional)
updatedBy (optional)
deleted
deletedDate (optional)
Date format: date-time
id
Long format: int64
username
userDetail (optional)
tenant (optional)
system (optional)
failedLoginCount (optional)
Integer format: int32
locked (optional)
lockedDate (optional)
Date format: date-time
lockDescription (optional)
expired (optional)
expirationDate (optional)
Date format: date-time
passwordUpdatedDate (optional)
Date format: date-time
passwordMustChange (optional)
googleAuthenticatorEnabled (optional)
dn (optional)
ou (optional)
profileName (optional)
secret (optional)
description (optional)

HvlOAuthUserTypeModel Up

uuid
version (optional)
Integer format: int32
dateCreated (optional)
Date format: date-time
dateUpdated (optional)
Date format: date-time
createdBy (optional)
updatedBy (optional)
deleted
deletedDate (optional)
Date format: date-time
id
Long format: int64
code
description (optional)
orderNo (optional)
Integer format: int32
integrationCode (optional)
shortDescription (optional)
parameterType

HvlResponseBoolean Up

body (optional)
errorDetail (optional)

HvlResponseHvlAuthAuthenticationResponseModel Up

body (optional)
errorDetail (optional)

HvlResponseLong Up

body (optional)
Long format: int64
errorDetail (optional)

HvlResponseString Up

body (optional)
errorDetail (optional)

HvlResponseVoid Up

body (optional)
errorDetail (optional)