@@ -46,8 +46,9 @@ func NewAuthConnectionService(opts ...option.RequestOption) (r AuthConnectionSer
4646 return
4747}
4848
49- // Creates an auth connection for a profile and domain combination. Returns 409
50- // Conflict if an auth connection already exists for the given profile and domain.
49+ // Creates an auth connection for a profile and domain combination. If the provided
50+ // profile_name does not exist, it is created automatically. Returns 409 Conflict
51+ // if an auth connection already exists for the given profile and domain.
5152func (r * AuthConnectionService ) New (ctx context.Context , body AuthConnectionNewParams , opts ... option.RequestOption ) (res * ManagedAuth , err error ) {
5253 opts = slices .Concat (r .Options , opts )
5354 path := "auth/connections"
@@ -292,6 +293,8 @@ type ManagedAuth struct {
292293 LastAuthAt time.Time `json:"last_auth_at" format:"date-time"`
293294 // Browser live view URL for debugging (present when flow in progress)
294295 LiveViewURL string `json:"live_view_url" api:"nullable" format:"uri"`
296+ // Optional login page URL to skip discovery
297+ LoginURL string `json:"login_url" format:"uri"`
295298 // MFA method options (present when flow_step=awaiting_input and MFA selection
296299 // required)
297300 MfaOptions []ManagedAuthMfaOption `json:"mfa_options" api:"nullable"`
@@ -332,6 +335,7 @@ type ManagedAuth struct {
332335 HostedURL respjson.Field
333336 LastAuthAt respjson.Field
334337 LiveViewURL respjson.Field
338+ LoginURL respjson.Field
335339 MfaOptions respjson.Field
336340 PendingSSOButtons respjson.Field
337341 PostLoginURL respjson.Field
@@ -544,7 +548,8 @@ func (r *ManagedAuthSignInOption) UnmarshalJSON(data []byte) error {
544548type ManagedAuthCreateRequestParam struct {
545549 // Domain for authentication
546550 Domain string `json:"domain" api:"required"`
547- // Name of the profile to manage authentication for
551+ // Name of the profile to manage authentication for. If the profile does not exist,
552+ // it is created automatically.
548553 ProfileName string `json:"profile_name" api:"required"`
549554 // Interval in seconds between automatic health checks. When set, the system
550555 // periodically verifies the authentication status and triggers re-authentication
0 commit comments