| 1 | module OpenID |
| 2 | |
| 3 | import "Service.pkl" as service |
| 4 | import "site.pkl" as site |
| 5 | |
| 6 | hostname: String = "snowglobe.\(site.domain)" |
| 7 | issuer: String = "https://\(hostname)" |
| 8 | |
| 9 | class Client extends service.Requirement { |
| 10 | alias: String = "oidc" |
| 11 | fixed provider = "snowglobe" |
| 12 | fixed kind = "client" |
| 13 | clientId: String(isNotEmpty) |
| 14 | name: String |
| 15 | redirectUris: Listing<String> |
| 16 | usernameAliases: Mapping<String, String> = new {} |
| 17 | allowGuests: Boolean = false |
| 18 | usernameRequired: Boolean = false |
| 19 | } |