-
Notifications
You must be signed in to change notification settings - Fork 1
/
doc.go
36 lines (32 loc) · 1.5 KB
/
doc.go
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
/*
Package imqsauth implements a service that answers various authentication and authorization questions.
'imqsauth' is built on top of Authaus, which is a generic authentication and authorization package.
There may come a day when we need data-dependent permissions, such as
"Allowed to edit assets with ID = 3017". These kinds of permissions
cannot be hard-coded into the application, so they don't fit into
this scheme. However, it should not be too difficult to expand this
system to accomodate that kind of thing.
Example config file:
{
"Authaus": {...}, -- See config.go in Authaus package for description of the Authaus config
"PasswordResetExpirySeconds": 3600,
"HostnameFile": "hostname", -- Relative to the location of imqsauthconfig.json, or an absolute path
"SendMailPassword": "password123",
"SendMailDetails": {
"URL": "https://imqs-mailer.appspot.com",
"PasswordReset": {
"TemplateName": "skypipe-inc-reset-password", -- See https://github.com/IMQS/imqs-mailer#api for more info on valid templates
"From": "SkyPipe Inc. Password Reset <noreply@skypipeinc.com>"
},
"NewAccount": {
"TemplateName": "skypipe-inc-new-account-confirm", -- See https://github.com/IMQS/imqs-mailer#api for more info on valid templates
"From": "SkyPipe Inc. Account Confirmation <noreply@skypipeinc.com>"
},
"LDAPPasswordReset": {
"From": "SkyPipe Inc. Password Reset <noreply@skypipeinc.com>",
"Subject": "SkyPipe Inc. Reset Password"
}
}
}
*/
package imqsauth