mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-01 18:33:19 +02:00
devices: switch "default" device type to two built-in default device types (#2835)
This commit is contained in:
parent
9408401dbd
commit
a3be1b7cc5
5 changed files with 47 additions and 22 deletions
|
@ -24,6 +24,7 @@ import (
|
|||
"github.com/pomerium/pomerium/internal/telemetry/requestid"
|
||||
"github.com/pomerium/pomerium/internal/urlutil"
|
||||
"github.com/pomerium/pomerium/pkg/policy/criteria"
|
||||
"github.com/pomerium/pomerium/pkg/webauthnutil"
|
||||
)
|
||||
|
||||
func (a *Authorize) handleResultAllowed(
|
||||
|
@ -212,7 +213,7 @@ func (a *Authorize) requireWebAuthnResponse(
|
|||
if deviceType, ok := result.Allow.AdditionalData["device_type"].(string); ok {
|
||||
q.Set(urlutil.QueryDeviceType, deviceType)
|
||||
} else {
|
||||
q.Set(urlutil.QueryDeviceType, "default")
|
||||
q.Set(urlutil.QueryDeviceType, webauthnutil.DefaultDeviceType)
|
||||
}
|
||||
q.Set(urlutil.QueryRedirectURI, checkRequestURL.String())
|
||||
signinURL.RawQuery = q.Encode()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue