Permissions & consent
A Methacore App acts on behalf of a member. What it may do is defined by scopes – and the member consents to them before the app even starts. This page describes the scopes of the "Methacore Apps" API, the consent flow and what happens when an app needs more later on.
Scopes
| Scope | Shown to the member | Short (Studio, Store) | Used for |
|---|---|---|---|
mc.me.profile:read | Read your profile (name, email, birthday, picture) | Read profile | me.profile, GET /me/profile |
mc.me.groups:read | Read your groups | Read groups | me.groups, GET /me/groups |
mc.me.events:read | Read your events | Read events | me.events, GET /me/events |
mc.me.trainingplans:read | Read your training plans | Read training plans | me.trainingplans, GET /me/trainingplans |
mc.me.competitions:read | Read your competition results | Read competitions | me.competitions, GET /me/competitions |
mc.me.membercard:read | Read your membership card | Read membership card | me.membercard, GET /me/membercard |
mc.apps.storage:read | Read the app's own data | Read app storage | storage.list, storage.get, GET /storage/… |
mc.apps.storage:write | Save the app's own data | Write app storage | storage.put, storage.delete, PUT/DELETE /storage/… |
The column Shown to the member contains the text members read in the consent screen and under "Extend access". Besides these scopes, an app can request scopes of other Methacore APIs (such as mc.members:read) if they are enabled in the project – see the data source request. Even then, a token can never do more than the member themselves.
Three places, one list
| Where | What it contains |
|---|---|
| OAuth client in the Artim Developer Portal | the upper limit: scopes the app may request at all |
auth.scopes in app.json (Studio → Settings) | what the app requests when first opened |
| Token | what the member actually allowed |
Under Settings, the Studio only offers scopes that the client carries. If an app requests a scope at runtime that its client does not have, the Artim Developer Portal rejects it – the only fix is to extend the client.
Consent
When opened for the first time, an app does not start straight away. Instead, the host shows "Not yet authorised" ("Noch nicht freigegeben") with the app's icon and name, the provider (name of the team in the Artim Developer Portal), the requested permissions in plain language and the buttons "Allow access" ("Zugriff erlauben") and "Back" ("Zurück"). For external apps, the provider warning comes first.
"Allow access" opens the Artim Developer Portal's consent page – as a pop-up in the dashboard, in the in-app browser on mobile:
- The host fetches a one-time sign-in ticket for the member from Methacore and attaches it to the authorization request. The Artim Developer Portal passes it on to the Methacore sign-in – the member is already signed in and does not have to sign in a second time. If that fails, the usual sign-in form appears.
- The consent page shows the logo, provider, privacy policy and terms of use from the project in the Artim Developer Portal, along with the permissions.
- If the member belongs to several clubs, they choose the club the app should apply to. Only clubs whose policy allows the app are offered.
- After consent, the code goes to
https://apps-run.methacore.de/oauth/callback, the host exchanges it for a token via PKCE and starts the app.
The host keeps the token per app and club – in the browser for the dashboard, in the device's secure storage on mobile – and renews it itself. The next time the app is opened, it starts without asking. The app itself only sees the access token, never a refresh token.
Mitglied Host (Dashboard/Handy) Developer Portal Methacore
│ Zugriff erlauben ─▶│ │ │
│ │── Anmelde-Ticket holen ─────────────────────────────────▶│
│ │── /v1/oauth/authorize?…&session=<ticket> ─▶│ │
│ │ │── Anmeldung (Ticket) ───▶│
│◀── Zustimmungsseite ───────────────────────────── │ │
│ zustimmen ────────────────────────────────────────▶│ │
│ │◀── code an apps-run…/oauth/callback │
│ │── /v1/oauth/token (PKCE) ───▶│ │
│ │── startet die App, Token über die Bridge │
When an app needs more
If a new version comes with additional scopes, or the app requests a scope at runtime that its token does not carry, the host asks again – but only for the difference:
- New scopes in
auth.scopes: the next time the app is opened, the host notices that the stored token is missing something and shows "Extend access" ("Zugriff erweitern") with exactly the missing permissions. - At runtime: if the API responds with
403andThis token does not carry the <scope> scope., the app asks the bridge forauth.tokenwith{ scopes: ["<scope>"], reauthorize: true }. The host shows "Extend access"; after consent, the app retries the call once.
In the browser, the host only opens the consent page after the member clicks – every browser blocks pop-ups without a click. If the member declines, the app gets an error and the old token stays as it was.
Hosted apps handle all of this through the runtime, external apps through the SDK. You do not have to build any of it yourself.
Club policy
Club administrators decide in the dashboard under Organisation → Apps which apps their members may use – separately for the dashboard and the member app:
| Mode | Effect |
|---|---|
| all (default) | every app of the club and every public app |
| none | no app |
| selected | only the selected apps |
An app that the policy does not allow does not appear in that club's store, and the club cannot be selected in the consent screen.
What members see
- in the App Store and in the detail view: the requested permissions, the provider and the link to the privacy policy
- for hosted apps with an approved live version, the seal "Reviewed by Methacore" ("Von Methacore geprüft"); for external apps, "External – not reviewed by Methacore" ("Extern – nicht von Methacore geprüft")
- before the first start, "Not yet authorised"; for new permissions, "Extend access"