diff --git a/backend/atlas_portal/routes/auth_config.py b/backend/atlas_portal/routes/auth_config.py index 0e68cad..f43d822 100644 --- a/backend/atlas_portal/routes/auth_config.py +++ b/backend/atlas_portal/routes/auth_config.py @@ -29,6 +29,8 @@ def register(app) -> None: f"?client_id={quote(settings.KEYCLOAK_CLIENT_ID, safe='')}" f"&redirect_uri={redirect_uri}" ) + account_url = f"{issuer}/account" + account_password_url = f"{account_url}/#/security/signingin" return jsonify( { @@ -38,5 +40,7 @@ def register(app) -> None: "client_id": settings.KEYCLOAK_CLIENT_ID, "login_url": login_url, "reset_url": reset_url, + "account_url": account_url, + "account_password_url": account_password_url, } ) diff --git a/frontend/src/auth.js b/frontend/src/auth.js index 4727fd1..ec4b204 100644 --- a/frontend/src/auth.js +++ b/frontend/src/auth.js @@ -10,6 +10,8 @@ export const auth = reactive({ groups: [], loginUrl: "", resetUrl: "", + accountUrl: "", + accountPasswordUrl: "", token: "", }); @@ -44,6 +46,8 @@ export async function initAuth() { auth.enabled = Boolean(cfg.enabled); auth.loginUrl = cfg.login_url || ""; auth.resetUrl = cfg.reset_url || ""; + auth.accountUrl = cfg.account_url || ""; + auth.accountPasswordUrl = cfg.account_password_url || ""; if (!auth.enabled) return; diff --git a/frontend/src/views/AccountView.vue b/frontend/src/views/AccountView.vue index 65f702c..0cf2a3b 100644 --- a/frontend/src/views/AccountView.vue +++ b/frontend/src/views/AccountView.vue @@ -11,6 +11,15 @@
Atlas
- Service shortcuts for Atlas. Nextcloud is the hub, but everything is available directly too. + Service shortcuts for Atlas.
@@ -168,8 +168,8 @@ const sections = [ apps: [ { name: "Monero Node", - url: "https://monero.bstein.dev", - target: "_blank", + url: "/monero", + target: "_self", description: "Faster sync using the Atlas Monero node.", }, ], @@ -235,7 +235,7 @@ const sections = [ .tiles { display: grid; - grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } diff --git a/frontend/src/views/RequestAccessView.vue b/frontend/src/views/RequestAccessView.vue index 8ed8959..f0a201e 100644 --- a/frontend/src/views/RequestAccessView.vue +++ b/frontend/src/views/RequestAccessView.vue @@ -5,7 +5,7 @@Atlas
- Self-serve signups are not enabled yet. Request access and an admin can approve your account. + Request access and an admin can approve your account.
@@ -19,7 +19,7 @@- This creates a pending request in Atlas. If approved, you'll receive an email with next steps (if you provided one). + This creates a pending request in Atlas. If approved, check your request code for an onboarding link to complete setup.