/* Options: Date: 2024-12-22 01:49:04 Version: 8.12 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://taxfiling.pwc.de //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(Path="/auth", Verbs="GET,POST") // @Route(Path="/auth/{provider}", Verbs="GET,POST") @Api(Description="Sign In") @DataContract open class Authenticate : IReturn, IPost { /** * AuthProvider, e.g. credentials */ @DataMember(Order=1) var provider:String? = null @DataMember(Order=2) var userName:String? = null @DataMember(Order=3) var password:String? = null @DataMember(Order=4) var rememberMe:Boolean? = null @DataMember(Order=5) var accessToken:String? = null @DataMember(Order=6) var accessTokenSecret:String? = null @DataMember(Order=7) var returnUrl:String? = null @DataMember(Order=8) var errorView:String? = null @DataMember(Order=9) 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 refreshTokenExpiry:Date? = null @DataMember(Order=9) var profileUrl:String? = null @DataMember(Order=10) var roles:ArrayList = ArrayList() @DataMember(Order=11) var permissions:ArrayList = ArrayList() @DataMember(Order=12) var responseStatus:ResponseStatus? = null @DataMember(Order=13) var meta:HashMap = HashMap() }