-
Notifications
You must be signed in to change notification settings - Fork 1
/
token.exemple.yml
56 lines (56 loc) · 1.07 KB
/
token.exemple.yml
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
- role: guest
allowed:
- GetMovies
- GetMovie
- GetShows
- GetShow
- GetSeason
- GetEpisode
- GetModulesStatus
token:
# You can chose any name for your token
- name: guest_token_name
# You can also chose the value for the token
value: secure_guest_token
- role: user
# Roles can be nested
include:
- guest
allowed:
- DownloadMovie
- DownloadMovieFiles
- DownloadMovieSubtitle
- UpdateMovieSubtitle
- DownloadShowFiles
- DownloadEpisode
- DownloadEpisodeFiles
- DownloadEpisodeSubtitle
- UpdateEpisodeSubtitle
- Wishlist
- AddTorrent
- ListTorrents
- RemoveTorrent
token:
- name: user_token_name
value: secure_user_token
- role: admin
include:
- user
allowed:
- DeleteMovie
- DeleteEpisode
- DeleteSeason
- DeleteShow
- PprofIndex
- PprofBlock
- PprofGoroutine
- PprofHeap
- PprofMutex
- PprofCmdline
- PprofProfile
- PprofSymbol
- PprofTrace
- Metrics
token:
- name: admin_token_name
value: secure_admin_token