Skip to content

Commit

Permalink
chore: automatically print admin access token url (#1285)
Browse files Browse the repository at this point in the history
<!-- Please make sure there is an issue that this PR is correlated to. -->

## Changes

<!-- If there are frontend changes, please include screenshots. -->
  • Loading branch information
NathanFlurry committed Oct 30, 2024
1 parent 4659b2e commit c4dddc2
Show file tree
Hide file tree
Showing 74 changed files with 122 additions and 1,549 deletions.
21 changes: 21 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ members = [
"packages/api/games/",
"packages/api/actor/",
"packages/api/monolith-public/",
"packages/services/admin/standalone/default-login",
"packages/services/token/ops/exchange/",
"packages/services/token/ops/revoke/",
"packages/services/token/ops/get/",
Expand Down
1 change: 1 addition & 0 deletions packages/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ cluster-default-update = { path = "../services/cluster/standalone/default-update
pegboard-dc-init = { path = "../services/pegboard/standalone/dc-init" }
rivet-config = { version = "0.1.0", path = "../common/config" }
reqwest = "0.12.9"
admin-default-login = { version = "0.0.1", path = "../services/admin/standalone/default-login" }


[dependencies.sqlx]
Expand Down
8 changes: 5 additions & 3 deletions packages/cli/src/run_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ pub fn config(_rivet_config: rivet_config::Config) -> Result<RunConfigData> {
|config, pools| Box::pin(user_delete_pending::start(config, pools)),
),
// Oneshot
// Service::new("admin_login", ServiceKind::Oneshot, |config, pools| {
// Box::pin(TODO)
// }),
Service::new(
"admin_default_login",
ServiceKind::Oneshot,
|config, pools| Box::pin(admin_default_login::start(config, pools)),
),
Service::new(
"build_default_create",
ServiceKind::Oneshot,
Expand Down
3 changes: 3 additions & 0 deletions packages/common/config/src/config/rivet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,16 @@ pub struct Auth {
pub access_kind: RivetAccessKind,
/// Flag to enable access token login.
pub access_token_login: bool,
/// Automatically print a URL to log in to Rivet as admin.
pub print_login_url: bool,
}

impl Default for Auth {
fn default() -> Self {
Self {
access_kind: RivetAccessKind::Private,
access_token_login: true,
print_login_url: true,
}
}
}
Expand Down
Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

17 changes: 0 additions & 17 deletions packages/services/admin/ops/device-link-create/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion packages/services/admin/ops/device-link-create/README.md

This file was deleted.

40 changes: 0 additions & 40 deletions packages/services/admin/ops/device-link-create/src/lib.rs

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions packages/services/admin/ops/game-config-create/Cargo.toml

This file was deleted.

18 changes: 0 additions & 18 deletions packages/services/admin/ops/game-config-create/src/lib.rs

This file was deleted.

This file was deleted.

21 changes: 0 additions & 21 deletions packages/services/admin/ops/game-config-get/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion packages/services/admin/ops/game-config-get/README.md

This file was deleted.

43 changes: 0 additions & 43 deletions packages/services/admin/ops/game-config-get/src/lib.rs

This file was deleted.

28 changes: 0 additions & 28 deletions packages/services/admin/ops/game-config-get/tests/integration.rs

This file was deleted.

23 changes: 0 additions & 23 deletions packages/services/admin/ops/game-token-create/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion packages/services/admin/ops/game-token-create/README.md

This file was deleted.

Loading

0 comments on commit c4dddc2

Please sign in to comment.