Skip to content

Fix auth and extension bugs before first deploy to drive.domatix.cloud #1

Closed

Description

@gnacho

Context

First deploy of ocnotes to the production OpenCloud instance (drive.domatix.cloud, CT 4125, nodo4). Current code on branch feat_backend_api_v1 has blockers.

Backend

  • auth.ValidateBasic calls http.Get(graphURL) without sending the Basic credentials, so /graph/v1.0/me returns 401 and Basic auth always fails (Iotas/Android client cannot authenticate). Bearer path is correct.
  • Store refactor in progress: schema moved from migrations/ dir to inline initialSchema (uncommitted).

Extension

  • NoteList.vue uses formatDate (undefined).
  • NoteEditor.vue uses props.note but defineProps result is not assigned (undefined props).
  • api.ts uses plain fetch without the session Bearer (clientService.httpAuthenticated pattern from ocnews) → 401 against the authenticated backend.
  • Never built yet (no node_modules/dist).

Acceptance

  • Backend: Basic auth against OpenCloud graph validates app tokens; Bearer works; build + vet clean.
  • Extension: builds; api.ts sends Bearer; no undefined refs.
  • Deployed to CT 4125 under /index.php/apps/notes/ + NPM locations on vhost 158, keeping drive.domatix.cloud as the domain.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions