All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.svix.kotlin.models.Oauth2AuthMethodIn.kt Maven / Gradle / Ivy

/**
* Svix API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.1
* 
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.svix.kotlin.models


import com.squareup.moshi.Json

/**
* The method used for authenticating to the OAuth authorization server.  `clientSecretJwt` will construct a JWT used for authentication with the oauth authorization server. This method is less commonly used and may not be supported by all oauth providers. `clientSecretBasic` will authenticate to the oauth authorization server using an `Authorization` header with the client secret as the value. This is the most common means of authentication. `clientSecretPost` will authenticate to the oauth authorization server by passing the client secret in a `client_secret` field in the request body. This method may not be supported by all oauth providers, and in general `clientSecretBasic` should be preferred.
* Values: clientSecretJwt,clientSecretBasic,clientSecretPost
*/


enum class Oauth2AuthMethodIn(val value: kotlin.String) {

    

    @Json(name = "clientSecretJwt")
    clientSecretJwt("clientSecretJwt"),

    @Json(name = "clientSecretBasic")
    clientSecretBasic("clientSecretBasic"),

    @Json(name = "clientSecretPost")
    clientSecretPost("clientSecretPost");


    /**
    This override toString avoids using the enum var name and uses the actual api value instead.
    In cases the var name and value are different, the client would send incorrect enums to the server.
    **/
    override fun toString(): String {
        return value
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy