fix: custom absolute endpoints

This commit is contained in:
Livio Amstutz 2020-02-21 10:04:50 +01:00
parent 30d8dec409
commit 660519a19f
4 changed files with 41 additions and 16 deletions

View file

@ -21,7 +21,7 @@ func main() {
Port: "9998",
}
storage := mock.NewAuthStorage()
handler, err := op.NewDefaultOP(ctx, config, storage, op.WithCustomTokenEndpoint("test"))
handler, err := op.NewDefaultOP(ctx, config, storage, op.WithCustomTokenEndpoint(op.NewEndpoint("test")))
if err != nil {
log.Fatal(err)
}