Adjustments for the change server flow (#756)

Check SSO support by calling the internal.GetDeviceAuthorizationFlowInfo

Rename LoginSaveConfigIfSSOSupported to SaveConfigIfSSOSupported

Receive device name as input for setup-key login

have a default android name when no context value is provided

log non parsed errors from management registration calls
This commit is contained in:
Maycon Santos
2023-03-23 16:35:06 +01:00
committed by GitHub
parent 8f66dea11c
commit 628b497e81
3 changed files with 42 additions and 23 deletions

View File

@@ -34,7 +34,7 @@ func GetInfo(ctx context.Context) *Info {
func extractDeviceName(ctx context.Context) string {
v, ok := ctx.Value(DeviceNameCtxKey).(string)
if !ok {
return ""
return "android"
}
return v
}