Add comments to counterbadge.example.json

This commit is contained in:
s3lph 2022-01-01 01:28:06 +01:00
parent fb4761a336
commit 72ecb3e609
Signed by: s3lph
GPG key ID: 8AC98A811E5BEFF5

View file

@ -1,31 +1,33 @@
{ {
"counters": { "counters": {
"my-treasure-hunt": { "my-treasure-hunt": { # Give your counter a reasonable slug name.
"display_name": "My rC3 Treasure Hunt", "display_name": "My rC3 Treasure Hunt", # ... and a reasonable display name.
"unique_tokens": [ "unique_tokens": [
"bc243542-f7d9-4474-943a-15e5936c9943", # Generate unique, non-guessable tokens for each place to visit
"d6cf7658-a556-4784-bcb7-06d12fc47f54", "bc243542-f7d9-4474-943a-15e5936c9943",
"ee81ad35-2a04-4781-9a09-e925ce2b5eab", "d6cf7658-a556-4784-bcb7-06d12fc47f54",
"202102f8-aca9-42e1-b6f9-0cb7d0dbb380", "ee81ad35-2a04-4781-9a09-e925ce2b5eab",
"generate unique, non-guessable tokens for each place to visit" "202102f8-aca9-42e1-b6f9-0cb7d0dbb380",
], "05cbbbc0-282e-4ef8-a5af-0be91a914818"
"profile_url": "https://api.rc3.world/api/me", ],
"redeem_url": "https://api.rc3.world/api/c/rc3_21/badges/redeem_token", "profile_url": "https://api.rc3.world/api/me", # Adapt to your event's profile API URL
"api_token": "Your assembly's API token. Generate it at Maschinenraum / Authentication / Request a New Token", "redeem_url": "https://api.rc3.world/api/c/rc3_21/badges/redeem_token", # Adapt to your event's redeem URL
"issue_at": { "api_token": "Your assembly's API token. Generate it at Maschinenraum / Authentication / Request a New Token",
"1": "A permanent redeem token", "issue_at": {
"5": "Another permanent redeem token. Generate it at Maschinenraum / Badges / <the badge> / Create Badge Redeem Token" # Add badge issue tokens to taste
}, "1": "A permanent redeem token, issued after the first place is found ",
"oauth": { "5": "Another permanent redeem token, issued after all five places are found"
"client_id": "Your OAuth2 Client ID. Register a public OAuth2-Client at Maschinenraum / Authentication / New Application", },
"client_secret": "Your OAuth2 Client Secret", "oauth": { # Adapt to your event's OAuth endpoints
"authorize_url": "https://rc3.world/sso/authorize/", "client_id": "Your OAuth2 Client ID. Register a public OAuth2-Client at Maschinenraum / Authentication / New Application",
"token_url": "https://rc3.world/sso/token/", "client_secret": "Your OAuth2 Client Secret",
"scope": "rc3_21_attendee", "authorize_url": "https://rc3.world/sso/authorize/",
"redirect_url": "https://example.org/counter/my-treasure-hunt/redirect", "token_url": "https://rc3.world/sso/token/",
"response_type": "code" "scope": "rc3_21_attendee",
} "redirect_url": "https://example.org/counter/my-treasure-hunt/redirect",
} "response_type": "code"
} }
}
}
} }