fxa-auth-server/docs/endpoint_data.md

472 строки
5.8 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2013-10-26 04:49:49 +04:00
## /account/create
* input
* email
* srp
* passwordStretching
* reads
* email
* writes
* uid
* email
* emailCode
* verified
* kA
* wrapKb
* srp
* passwordStretching
* sessionTokenList
* keyFetchTokenList
* passwordForgotTokenList
2013-10-26 04:49:49 +04:00
* srpTokenList
* authTokenList
* accountResetTokenList
* output
* uid
* db-read
* Emails
* db-write
* Emails
* Accounts
## /account/devices
* input
* sessionToken.id
* reads
* uid
* sessionTokenList
* writes
* (none)
* output
* sessionTokenList (x)
* db-read
* SessionTokens
* Accounts
* db-write
* (none)
## /account/keys
* input
* keyFetchToken.id
* reads
* uid
* kA
* wrapKb
* verified
* writes
* delete
* keyFetchToken
* keyFetchTokenList
* output
* kA
* wrapKb
* db-read
* KeyFetchTokens
* db-write
* KeyFetchTokens
* Accounts
## /account/reset
* input
* accountResetToken.id
* srp
* passwordStretching
* wrapKb
* reads
* uid
* sessionTokenList
* keyFetchTokenList
* passwordForgotTokenList
2013-10-26 04:49:49 +04:00
* srpTokenList
* authTokenList
* accountResetTokenList
* writes
* delete
* all tokens
* srp
* passwordStretching
* wrapKb
* sessionTokenList
* keyFetchTokenList
* passwordForgotTokenList
2013-10-26 04:49:49 +04:00
* srpTokenList
* authTokenList
* accountResetTokenList
* output
* (none)
* db-read
* AccountResetTokens
* Accounts
* db-write
* SessionTokens
* KeyFetchTokens
* AccountResetTokens
* AuthTokens
* SrpTokens
* PasswordForgotTokens
2013-10-26 04:49:49 +04:00
* Emails
* Accounts
## /account/destroy
* input
* authToken.id
* reads
* uid
* sessionTokenList
* keyFetchTokenList
* passwordForgotTokenList
2013-10-26 04:49:49 +04:00
* srpTokenList
* authTokenList
* accountResetTokenList
* writes
* delete
* all
* output
* (none)
* db-read
* AuthTokens
* Accounts
* db-write
* SessionTokens
* KeyFetchTokens
* AccountResetTokens
* AuthTokens
* SrpTokens
* PasswordForgotTokens
2013-10-26 04:49:49 +04:00
* Emails
* Accounts
## /auth/start
* input
* email
* reads
* uid
* srp
* passwordStretching
* srpToken data
* email
* emailCode
* kA
* wrapKb
* verified
* writes
* srpToken
* srpTokenList
* output
* srpToken.id
* passwordStretching
* srp.B
* srp.salt
* db-read
* Emails
* db-write
* SrpTokens
* Accounts
## /auth/finish
* input
* srpToken.id
* A
* M
* reads
* uid
* srpToken
* N, g, s, v, b, B
* passwordStretching
* authToken data
* email
* emailCode
* kA
* wrapKb
* verified
* writes
* delete
* srpToken
* authToken
* srpTokenList
* authTokenList
* output
* authToken.id
* db-read
* SrpTokens
* db-write
* SrpTokens
* AuthTokens
* Accounts
## /session/create
* input
* authToken.id
* reads
* uid
* verified
* sessionToken data
* email
* emailCode
* keyFetchToken data
* kA
* wrapKb
* writes
* delete
* authToken
* sessionToken
* keyFetchToken
* sessionTokenList
* keyFetchTokenList
* output
* keyFetchToken.id
* sessionToken.id
* db-read
* AuthTokens
* db-write
* AuthTokens
* SessionTokens
* KeyFetchTokens
* Accounts
## /session/destroy
* input
* sessionToken.id
* reads
* uid
* writes
* delete
* sessionToken
* sessionTokenList
* output
* (none)
* db-read
* SessionTokens
* db-write
* SessionTokens
* Accounts
## /recovery_email/status
* input
* sessionToken.id
* reads
* email
* verified
* writes
* (none)
* output
* email
* verified
* db-read
* SessionTokens
* db-write
* (none)
## /recovery_email/resend_code
* input
* sessionToken.id
* reads
* uid
* email
* emailCode
* writes
* (none)
* output
* (none)
* db-read
* SessionTokens
* db-write
* (none)
## /recovery_email/verify_code
* input
* uid
* code
* reads
* emailCode
* srpTokenList
* authTokenList
* keyFetchTokenList
* sessionTokenList
* writes
* verified
* output
* (none)
* db-read
* Accounts
* db-write
* Emails
* SrpTokens
* AuthTokens
* KeyFetchTokens
* SessionTokens
## /certificate/sign
* input
* sessionToken.id
* publicKey
* duration
* reads
* uid
* verified
* writes
* (none)
* output
* signedKey
* db-read
* SessionTokens
* db-write
* (none)
## /password/change/start
* input
* authToken.id
* reads
* uid
* keyFetchToken data
* kA
* wrapKb
* verified
* accountResetToken data
* (none)
* writes
* delete
* authToken
* keyFetchToken
* accountResetToken
* keyFetchTokenList
* accountResetTokenList
* output
* keyFetchToken
* accountResetToken
* db-read
* AuthTokens
* db-write
* AuthTokens
* KeyFetchTokens
* AccountResetTokens
* Accounts
## /password/forgot/send_code
* input
* email
* reads
* uid
* passwordForgotToken data
2013-10-26 04:49:49 +04:00
* (none)
* writes
* passwordForgotToken
* passwordForgotTokenList
2013-10-26 04:49:49 +04:00
* output
* passwordForgotToken.id
2013-10-26 04:49:49 +04:00
* ttl
* codeLength
* tries
* db-read
* Emails
* db-write
* PasswordForgotTokens
2013-10-26 04:49:49 +04:00
* Accounts
## /password/forgot/resend_code
* input
* passwordForgotToken.id
2013-10-26 04:49:49 +04:00
* reads
* uid
* email
2014-01-15 00:19:00 +04:00
* passCode
2013-10-26 04:49:49 +04:00
* ttl
* codeLength
* tries
* writes
* (none)
* output
* passwordForgotToken.id
2013-10-26 04:49:49 +04:00
* ttl
* codeLength
* tries
* db-read
* PasswordForgotTokens
2013-10-26 04:49:49 +04:00
* db-write
* (none)
## /password/forgot/verify_code
* input
* passwordForgotToken.id
2013-10-26 04:49:49 +04:00
* code
* reads
* uid
2014-01-15 00:19:00 +04:00
* passCode
2013-10-26 04:49:49 +04:00
* ttl
* accountResetToken data
* (none)
* writes
* delete
* passwordForgotToken
2013-10-26 04:49:49 +04:00
* tries
* accountResetToken
* passwordForgotTokenList
2013-10-26 04:49:49 +04:00
* accountResetTokenList
* output
* accountResetToken.id
* ttl
* tries
* db-read
* PasswordForgotTokens
2013-10-26 04:49:49 +04:00
* db-write
* PasswordForgotTokens
2013-10-26 04:49:49 +04:00
* AccountResetTokens
* Accounts
## /account/device
* input
* id
* name
* type
* pushCallback
* pushPublicKey
* pushAuthKey
* output
* id
* createdAt
* name
* type
* pushCallback
* pushPublicKey
* pushAuthKey
* db-write
* Devices
## /account/devices
* output
* array of objects
* id
* isCurrentDevice
* name
* type
* pushCallback
* pushPublicKey
* pushAuthKey
## /account/device
* input
* id
* db-write
* Devices
* SessionTokens