Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accounts plugin support connection tokens #904

Merged
merged 29 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
a9b5bac
rework accounts plugin interfaces, support connection tokens
James-Mart Nov 4, 2024
83cecec
fix references to old accounts api
James-Mart Nov 4, 2024
7078688
clean up demoapp1
James-Mart Nov 5, 2024
2aa372b
refactor db table names
James-Mart Nov 5, 2024
08ec777
update get-active-app to return the full OriginationData
James-Mart Nov 5, 2024
28caf7e
add full origination data to invite token
James-Mart Nov 5, 2024
5ee7e7c
support get-connected-apps request for homepage
James-Mart Nov 5, 2024
6fc7268
Merge remote-tracking branch 'origin/main' into accounts-plugin-suppo…
James-Mart Nov 5, 2024
55e6841
update lock files
James-Mart Nov 5, 2024
4f724c7
pr feedback - fix missing writing connected apps back to db
James-Mart Nov 7, 2024
9f8d776
fix comment about namespacing app data by protocol
James-Mart Nov 7, 2024
fc61d00
make connection tokens stateless
James-Mart Nov 7, 2024
44ed53a
remove expiration from connection token
James-Mart Nov 7, 2024
632b3be
organize accounts plugins better
James-Mart Nov 8, 2024
79dd995
add account-tokens plugin
James-Mart Nov 8, 2024
d7fb4d0
add invite decoding back into demoapp1
James-Mart Nov 11, 2024
b7cf130
add account-tokens plugin to accounts service
James-Mart Nov 11, 2024
4efe04e
use common account_tokens ConnectionToken type in accounts plugin
James-Mart Nov 11, 2024
2b7237a
use common account_tokens InviteToken type in invite plugin
James-Mart Nov 11, 2024
4d85be4
fix dependencies
James-Mart Nov 11, 2024
9fc7c3d
split apps_table from user_table
James-Mart Nov 12, 2024
8d8ac25
fix comment
James-Mart Nov 12, 2024
42f842c
fix incorrect caller origin for homepage
James-Mart Nov 12, 2024
11f0271
Merge remote-tracking branch 'origin/main' into accounts-plugin-suppo…
James-Mart Nov 12, 2024
0e546cf
fix chainmail->account plugin linkage after merge
James-Mart Nov 12, 2024
80bacea
Merge remote-tracking branch 'origin/main' into accounts-plugin-suppo…
James-Mart Nov 13, 2024
e9ba83c
improve/fix wit comments, add other comments
James-Mart Nov 14, 2024
76f7adc
support import and get-all-accounts
James-Mart Nov 15, 2024
a977f10
serialize/deserialize token variant itself
James-Mart Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ add_dependencies(CommonApiCommonLib_js ComponentParser)

add_rs_component_workspace(services/:Plugins
accounts
account-tokens
auth-any
auth-delegate
auth-invite
Expand All @@ -308,6 +309,7 @@ add_rs_component_workspace(services/:Plugins
transact
)


set(WASM_PSIBASE_BYPRODUCTS
${CMAKE_CURRENT_SOURCE_DIR}/services/user/XAdmin/ui/wasm-psibase/wasm-psibase_bg.js
${CMAKE_CURRENT_SOURCE_DIR}/services/user/XAdmin/ui/wasm-psibase/wasm-psibase_bg.wasm
Expand Down Expand Up @@ -384,6 +386,7 @@ psibase_package(
WASM ${CMAKE_CURRENT_BINARY_DIR}/Accounts.wasm
SERVER r-accounts
DATA ${Plugins_OUTPUT_FILE_accounts} /plugin.wasm
DATA ${Plugins_OUTPUT_FILE_account_tokens} /account-tokens.wasm
INIT
SERVICE r-accounts
WASM ${CMAKE_CURRENT_BINARY_DIR}/RAccounts.wasm
Expand Down
12 changes: 11 additions & 1 deletion dev/DemoApp1/plugin/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dev/DemoApp1/plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ package = "demoapp1:example"
[package.metadata.component.target.dependencies]
"host:common" = { path = "../../../services/user/CommonApi/common/packages/wit/host-common.wit" }
"invite:plugin" = { path = "../../../services/user/Invite/plugin/wit/world.wit" }
"accounts:plugin" = { path = "../../../services/system/Accounts/plugin/wit/world.wit" }
"accounts:plugin" = { path = "../../../services/system/Accounts/plugin/accounts/wit/world.wit" }
"transact:plugin" = { path = "../../../services/system/Transact/plugin/wit/world.wit" }
"auth-sig:plugin" = { path = "../../../services/system/AuthSig/plugin/wit/world.wit" }
12 changes: 11 additions & 1 deletion dev/DemoApp1/service/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading