feat: get issuer from context for device auth

This commit is contained in:
Tim Möhlmann 2023-04-11 18:49:42 +03:00
parent 97bc09583d
commit 643669fe4f
4 changed files with 18 additions and 6 deletions

View file

@ -107,7 +107,7 @@ func newOP(storage op.Storage, issuer string, key [32]byte) (op.OpenIDProvider,
DeviceAuthorization: op.DeviceAuthorizationConfig{
Lifetime: 5 * time.Minute,
PollInterval: 5 * time.Second,
UserFormURL: issuer + "device",
UserFormURL: "/device",
UserCode: op.UserCodeBase20,
},
}