/* Options: Date: 2024-12-22 12:01:05 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://techstacks.io //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: Authenticate.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* /** * Sign In */ @Route(Path="/auth", Verbs="GET,POST") // @Route(Path="/auth/{provider}", Verbs="POST") @Api(Description="Sign In") @DataContract open class Authenticate : IReturn, IPost { /** * AuthProvider, e.g. credentials */ @DataMember(Order=1) open var provider:String? = null @DataMember(Order=2) open var userName:String? = null @DataMember(Order=3) open var password:String? = null @DataMember(Order=4) open var rememberMe:Boolean? = null @DataMember(Order=5) open var accessToken:String? = null @DataMember(Order=6) open var accessTokenSecret:String? = null @DataMember(Order=7) open var returnUrl:String? = null @DataMember(Order=8) open var errorView:String? = null @DataMember(Order=9) open var meta:HashMap? = null companion object { private val responseType = AuthenticateResponse::class.java } override fun getResponseType(): Any? = Authenticate.responseType } @DataContract open class AuthenticateResponse : IHasSessionId, IHasBearerToken { @DataMember(Order=1) open var userId:String? = null @DataMember(Order=2) open var sessionId:String? = null @DataMember(Order=3) open var userName:String? = null @DataMember(Order=4) open var displayName:String? = null @DataMember(Order=5) open var referrerUrl:String? = null @DataMember(Order=6) open var bearerToken:String? = null @DataMember(Order=7) open var refreshToken:String? = null @DataMember(Order=8) open var refreshTokenExpiry:Date? = null @DataMember(Order=9) open var profileUrl:String? = null @DataMember(Order=10) open var roles:ArrayList? = null @DataMember(Order=11) open var permissions:ArrayList? = null @DataMember(Order=12) open var authProvider:String? = null @DataMember(Order=13) open var responseStatus:ResponseStatus? = null @DataMember(Order=14) open var meta:HashMap? = null }