/* Options: Date: 2024-12-03 09:17:43 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Authenticate.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* /** * Sign In */ @Route("/authenticate") // @Route("/authenticate/{provider}") // @Route("/auth") // @Route("/auth/{provider}") @Api(Description="Sign In") @DataContract open class Authenticate : IReturn, IPost { /** * AuthProvider, e.g. credentials */ @DataMember(Order=1) @ApiMember(Description="AuthProvider, e.g. credentials") var provider:String? = null @DataMember(Order=2) var state:String? = null @DataMember(Order=3) var oauth_token:String? = null @DataMember(Order=4) var oauth_verifier:String? = null @DataMember(Order=5) var userName:String? = null @DataMember(Order=6) var password:String? = null @DataMember(Order=7) var rememberMe:Boolean? = null @DataMember(Order=9) var errorView:String? = null @DataMember(Order=10) var nonce:String? = null @DataMember(Order=11) var uri:String? = null @DataMember(Order=12) var response:String? = null @DataMember(Order=13) var qop:String? = null @DataMember(Order=14) var nc:String? = null @DataMember(Order=15) var cnonce:String? = null @DataMember(Order=17) var accessToken:String? = null @DataMember(Order=18) var accessTokenSecret:String? = null @DataMember(Order=19) var scope:String? = null @DataMember(Order=20) var meta:HashMap = HashMap() companion object { private val responseType = AuthenticateResponse::class.java } override fun getResponseType(): Any? = Authenticate.responseType } @DataContract open class AuthenticateResponse : IHasSessionId, IHasBearerToken { @DataMember(Order=1) var userId:String? = null @DataMember(Order=2) var sessionId:String? = null @DataMember(Order=3) var userName:String? = null @DataMember(Order=4) var displayName:String? = null @DataMember(Order=5) var referrerUrl:String? = null @DataMember(Order=6) var bearerToken:String? = null @DataMember(Order=7) var refreshToken:String? = null @DataMember(Order=8) var profileUrl:String? = null @DataMember(Order=9) var roles:ArrayList = ArrayList() @DataMember(Order=10) var permissions:ArrayList = ArrayList() @DataMember(Order=11) var responseStatus:ResponseStatus? = null @DataMember(Order=12) var meta:HashMap = HashMap() }