Auth

Catalog


GET Index

Request path:

https://staging.server.kahla.app/Auth/IndexTry

Request example:

https://staging.server.kahla.app/Auth/Index

GET Version

Request path:

https://staging.server.kahla.app/Auth/VersionTry

Request example:

https://staging.server.kahla.app/Auth/Version

POST Auth by password

Request path:

https://staging.server.kahla.app/Auth/AuthByPassword

Request content type:

application/x-www-form-urlencoded

Form content example:

Email=yourEmail&Password=yourPassword 

Request form:

Name Required Type
Email Required Text
Password Required Text

POST Register kahla

Request path:

https://staging.server.kahla.app/Auth/RegisterKahla

Request content type:

application/x-www-form-urlencoded

Form content example:

Email=yourEmail&Password=yourPassword&ConfirmPassword=yourConfirmPassword 

Request form:

Name Required Type
Email Required Text
Password Required Text
ConfirmPassword Not required Text

GET Authorize O auth

Request path:

https://staging.server.kahla.app/Auth/OAuthTry

Request example:

https://staging.server.kahla.app/Auth/OAuth

GET Auth result

Request path:

https://staging.server.kahla.app/Auth/AuthResultTry

Request example:

https://staging.server.kahla.app/Auth/AuthResult?state=yourstate&code=0

Request arguments:

Name Required Type
state Not required Text
code Required Number

GET Sign in status

Request path:

https://staging.server.kahla.app/Auth/SignInStatusTry

Request example:

https://staging.server.kahla.app/Auth/SignInStatus

GET Authorize Me

Request path:

https://staging.server.kahla.app/Auth/MeTry

Request example:

https://staging.server.kahla.app/Auth/Me

POST Authorize Update info

Request path:

https://staging.server.kahla.app/Auth/UpdateInfo

Request content type:

application/x-www-form-urlencoded

Form content example:

NickName=yourNickName&Bio=yourBio&HeadImgKey=0&HideMyEmail=false 

Request form:

Name Required Type
NickName Required Text
Bio Not required Text
HeadImgKey Required Number
HideMyEmail Required Boolean

POST Authorize Update client setting

Request path:

https://staging.server.kahla.app/Auth/UpdateClientSetting

Request content type:

application/x-www-form-urlencoded

Form content example:

ThemeId=0&EnableEmailNotification=false 

Request form:

Name Required Type
ThemeId Not required Number
EnableEmailNotification Not required Boolean

POST Authorize Change password

Request path:

https://staging.server.kahla.app/Auth/ChangePassword

Request content type:

application/x-www-form-urlencoded

Form content example:

OldPassword=yourOldPassword&NewPassword=yourNewPassword&RepeatPassword=yourRepeatPassword 

Request form:

Name Required Type
OldPassword Required Text
NewPassword Required Text
RepeatPassword Required Text

POST Authorize Send email

Request path:

https://staging.server.kahla.app/Auth/SendEmail

Request content type:

application/x-www-form-urlencoded

Form content example:

email=youremail 

Request form:

Name Required Type
email Required Text

GET Authorize Init pusher

Request path:

https://staging.server.kahla.app/Auth/InitPusherTry

Request example:

https://staging.server.kahla.app/Auth/InitPusher

GET Authorize Log off

Request path:

https://staging.server.kahla.app/Auth/LogOffTry

Request example:

https://staging.server.kahla.app/Auth/LogOff?DeviceId=0

Request arguments:

Name Required Type
DeviceId Required Number