mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 03:34:57 +08:00
Include user payload in runtime app info response
This commit is contained in:
parent
47b3fef73d
commit
4ac8468c45
3 changed files with 4 additions and 2 deletions
|
@ -3010,7 +3010,7 @@ defmodule Livebook.Session do
|
||||||
{type, _module, _key} = Livebook.Config.identity_provider()
|
{type, _module, _key} = Livebook.Config.identity_provider()
|
||||||
|
|
||||||
user
|
user
|
||||||
|> Map.take([:id, :name, :email])
|
|> Map.take([:id, :name, :email, :payload])
|
||||||
|> Map.put(:source, type)
|
|> Map.put(:source, type)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ defmodule Livebook.Users.User do
|
||||||
id: id(),
|
id: id(),
|
||||||
name: String.t() | nil,
|
name: String.t() | nil,
|
||||||
email: String.t() | nil,
|
email: String.t() | nil,
|
||||||
|
payload: map() | nil,
|
||||||
hex_color: hex_color()
|
hex_color: hex_color()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1493,7 +1493,8 @@ defmodule Livebook.SessionTest do
|
||||||
source: :session,
|
source: :session,
|
||||||
id: "1234",
|
id: "1234",
|
||||||
name: "Jake Peralta",
|
name: "Jake Peralta",
|
||||||
email: "jperalta@example.com"
|
email: "jperalta@example.com",
|
||||||
|
payload: nil
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue