WithCustomAttributes adds custom attributes to be set in the "user" claim.
(v map[string]interface{})
| 92 | |
| 93 | // WithCustomAttributes adds custom attributes to be set in the "user" claim. |
| 94 | func WithCustomAttributes(v map[string]interface{}) Option { |
| 95 | return newFuncFlowOption(func(fo *flowContext) { |
| 96 | if fo.CustomAttributes == nil { |
| 97 | fo.CustomAttributes = make(map[string]interface{}) |
| 98 | } |
| 99 | for k, val := range v { |
| 100 | fo.CustomAttributes[k] = val |
| 101 | } |
| 102 | }) |
| 103 | } |
| 104 | |
| 105 | // NewCertificateFlow initializes a cli flow to get a new certificate. |
| 106 | func NewCertificateFlow(ctx *cli.Context, opts ...Option) (*CertificateFlow, error) { |
no test coverage detected
searching dependent graphs…