-
Notifications
You must be signed in to change notification settings - Fork 0
/
arno.yaml
117 lines (81 loc) · 3.85 KB
/
arno.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
%YAML 1.2
# -*- coding: UTF-8, tab-width: 4 -*-
---
^: # <-- Anno user name. `^` means to use the basename of the filename.
# The user name will be visible to clients via the whoami API and
# possibly in other places.
author_identities:
# All identities should conform to the `Agent` model as described
# in https://www.w3.org/TR/annotation-model/#agents .
main:
# ^-- The author ID key:
# … should either consist of only [A-Za-z0-9_-]+ or be a URL.
# … is meant to be human readable for admin convenience.
#
# In cases where you don't have a preference, we suggest using a
# randomness-based (i.e. v4) UUID packaged as a URL by adding the
# prefix `urn:uuid:` (RFC 4122).
# Linux has a UUID generator in `/proc/sys/kernel/random/uuid`.
#
# Author ID keys that look like a URL will be used as the default
# value for the Agent's `id` field. Otherwise, the Agent ID
# defaults to a false-y value. False-y values for the Agent ID
# will be replaced with an auto-generated UUID URL.
name: 'Arno Nym'
type: Person
email: 'arno.nym@example.net'
INHERITS:
# The `INHERITS` option can be used to include fragments
# from the `custom_data` config category.
- 'user_icon_fragments.wp_vector_anon'
minimal:
name: 'A. Nym'
type: Person
doi_bot_test:
name: 'Josiah S. Carberry'
type: Person
email: 'jscarberry@example.net'
homepage:
- 'https://library.brown.edu/info/hay/carberry/'
- '@context': 'http://schema.org/'
'@type': 'Webpage'
url: 'https://ror.org/05gq02987'
name: 'Brown University'
description: 'Example for how to convey ROR affiliation to our DOI bot.'
# ORCID URL can be given either as `homepage` or `iana:alternate`:
'iana:alternate':
- 'https://orcid.org/0000-0002-1825-0097'
acl_user_groups:
- 'svc_anno-frontend-tests/author'
- 'svc_diglit/author'
- 'svc_diglit/moderator'
- 'svc_diglit/publisher'
- 'svc_journals/author'
- 'svc_journals/publisher'
- 'doi_sources'
# You can also declare group membership in a group config file.
# Membership declarations merge cumulatively, so this is redundant:
- 'doi_request_watchers'
upstream_userid_aliases:
# The upstream reverse proxy may know this user under a name that's
# more complicated (e.h. Shibboleth) or might change in the future.
# This mapping translates the names from the identity provider (IDP)
# to names that make sense to the anno server admin.
#
# All below identities map to anno user "arno", because "arno" is the
# base name component of the filename of this user config file.
# ====================================================================
# IDP dummy email -> anno user
- id: 'xyz12 345 @ example.net'
- id: 'xyz12 c @ example.net'
- id: 'arno 22 @ example.net'
- id: 'arno nym @ example.net'
# We can nicely align them with spaces because all whitespace is
# removed from the id value for your convenience.
# If your upstream IDP uses usernames with whitespace in them,
# please file a feature request for URL encoded IDs and we'll
# most likely add that.
# ====================================================================
# Simplified according to `../identity_providers.yaml`
- id: 'staging:V4B7UOXG77RIRCH4LSD2LMKPA3MA7SWS' # hc42
...