returning account guid in attach request

This commit is contained in:
Roland Osborne 2022-09-12 23:59:16 -07:00
parent 3611530f11
commit 91e7a242f2
3 changed files with 6 additions and 0 deletions

View File

@ -3230,9 +3230,12 @@ components:
LoginAccess { LoginAccess {
type: object type: object
required: required:
- guid
- appToken - appToken
- created - created
properties: properties:
guid:
type: string
appToken: appToken:
type: string type: string
created: created:

View File

@ -55,6 +55,7 @@ func AddAccountApp(w http.ResponseWriter, r *http.Request) {
} }
login := LoginAccess{ login := LoginAccess{
GUID: account.GUID,
AppToken: account.GUID + "." + access, AppToken: account.GUID + "." + access,
Created: app.Created, Created: app.Created,
} }

View File

@ -318,6 +318,8 @@ type IDList struct {
//LoginAccess response object when app is associated //LoginAccess response object when app is associated
type LoginAccess struct { type LoginAccess struct {
GUID string `json:"guid"`
AppToken string `json:"appToken"` AppToken string `json:"appToken"`
Created int64 `json:"created"` Created int64 `json:"created"`