mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
returning account guid in attach request
This commit is contained in:
parent
3611530f11
commit
91e7a242f2
@ -3230,9 +3230,12 @@ components:
|
||||
LoginAccess {
|
||||
type: object
|
||||
required:
|
||||
- guid
|
||||
- appToken
|
||||
- created
|
||||
properties:
|
||||
guid:
|
||||
type: string
|
||||
appToken:
|
||||
type: string
|
||||
created:
|
||||
|
@ -55,6 +55,7 @@ func AddAccountApp(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
login := LoginAccess{
|
||||
GUID: account.GUID,
|
||||
AppToken: account.GUID + "." + access,
|
||||
Created: app.Created,
|
||||
}
|
||||
|
@ -318,6 +318,8 @@ type IDList struct {
|
||||
|
||||
//LoginAccess response object when app is associated
|
||||
type LoginAccess struct {
|
||||
GUID string `json:"guid"`
|
||||
|
||||
AppToken string `json:"appToken"`
|
||||
|
||||
Created int64 `json:"created"`
|
||||
|
Loading…
Reference in New Issue
Block a user