/* Options: Date: 2024-11-08 09:31:26 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://appcenter-11.tclclouds.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(Path="/auth", Verbs="OPTIONS,GET,POST,DELETE") // @Route(Path="/auth/{provider}", Verbs="OPTIONS,GET,POST,DELETE") @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 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() }