Skip to content

Commit 6284a9a

Browse files
authored
feat: add autocomplete attributes (#2523)
See #2396
1 parent 3d8cf38 commit 6284a9a

File tree

38 files changed

+210
-8
lines changed

38 files changed

+210
-8
lines changed

internal/httpclient/api/openapi.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -5251,6 +5251,16 @@ components:
52515251
uiNodeInputAttributes:
52525252
description: InputAttributes represents the attributes of an input node
52535253
properties:
5254+
autocomplete:
5255+
description: The autocomplete attribute for the input.
5256+
enum:
5257+
- email
5258+
- tel
5259+
- url
5260+
- current-password
5261+
- new-password
5262+
- one-time-code
5263+
type: string
52545264
disabled:
52555265
description: Sets the input's disabled field to true or false.
52565266
type: boolean

internal/httpclient/docs/UiNodeAttributes.md

+26
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**Autocomplete** | Pointer to **string** | The autocomplete attribute for the input. | [optional]
78
**Disabled** | **bool** | Sets the input's disabled field to true or false. |
89
**Label** | Pointer to [**UiText**](UiText.md) | | [optional]
910
**Name** | **string** | The input's element name. |
@@ -45,6 +46,31 @@ NewUiNodeAttributesWithDefaults instantiates a new UiNodeAttributes object
4546
This constructor will only assign default values to properties that have it defined,
4647
but it doesn't guarantee that properties required by API are set
4748

49+
### GetAutocomplete
50+
51+
`func (o *UiNodeAttributes) GetAutocomplete() string`
52+
53+
GetAutocomplete returns the Autocomplete field if non-nil, zero value otherwise.
54+
55+
### GetAutocompleteOk
56+
57+
`func (o *UiNodeAttributes) GetAutocompleteOk() (*string, bool)`
58+
59+
GetAutocompleteOk returns a tuple with the Autocomplete field if it's non-nil, zero value otherwise
60+
and a boolean to check if the value has been set.
61+
62+
### SetAutocomplete
63+
64+
`func (o *UiNodeAttributes) SetAutocomplete(v string)`
65+
66+
SetAutocomplete sets Autocomplete field to given value.
67+
68+
### HasAutocomplete
69+
70+
`func (o *UiNodeAttributes) HasAutocomplete() bool`
71+
72+
HasAutocomplete returns a boolean if a field has been set.
73+
4874
### GetDisabled
4975

5076
`func (o *UiNodeAttributes) GetDisabled() bool`

internal/httpclient/docs/UiNodeInputAttributes.md

+26
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7+
**Autocomplete** | Pointer to **string** | The autocomplete attribute for the input. | [optional]
78
**Disabled** | **bool** | Sets the input's disabled field to true or false. |
89
**Label** | Pointer to [**UiText**](UiText.md) | | [optional]
910
**Name** | **string** | The input's element name. |
@@ -33,6 +34,31 @@ NewUiNodeInputAttributesWithDefaults instantiates a new UiNodeInputAttributes ob
3334
This constructor will only assign default values to properties that have it defined,
3435
but it doesn't guarantee that properties required by API are set
3536

37+
### GetAutocomplete
38+
39+
`func (o *UiNodeInputAttributes) GetAutocomplete() string`
40+
41+
GetAutocomplete returns the Autocomplete field if non-nil, zero value otherwise.
42+
43+
### GetAutocompleteOk
44+
45+
`func (o *UiNodeInputAttributes) GetAutocompleteOk() (*string, bool)`
46+
47+
GetAutocompleteOk returns a tuple with the Autocomplete field if it's non-nil, zero value otherwise
48+
and a boolean to check if the value has been set.
49+
50+
### SetAutocomplete
51+
52+
`func (o *UiNodeInputAttributes) SetAutocomplete(v string)`
53+
54+
SetAutocomplete sets Autocomplete field to given value.
55+
56+
### HasAutocomplete
57+
58+
`func (o *UiNodeInputAttributes) HasAutocomplete() bool`
59+
60+
HasAutocomplete returns a boolean if a field has been set.
61+
3662
### GetDisabled
3763

3864
`func (o *UiNodeInputAttributes) GetDisabled() bool`

internal/httpclient/model_ui_node_input_attributes.go

+37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-case=should_adjust_linkable_providers_based_on_linked_credentials-agent=githuber.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-case=should_adjust_linkable_providers_based_on_linked_credentials-agent=multiuser.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-case=should_adjust_linkable_providers_based_on_linked_credentials-agent=oryer.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-case=should_adjust_linkable_providers_based_on_linked_credentials-agent=password.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=link-case=should_link_a_connection-flow=fetch.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=link-case=should_link_a_connection-flow=original.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=link-case=should_link_a_connection-flow=response.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"name": "traits.email",
2020
"type": "email",
2121
"required": true,
22+
"autocomplete": "email",
2223
"disabled": false,
2324
"node_type": "input"
2425
},
@@ -63,6 +64,7 @@
6364
"name": "password",
6465
"type": "password",
6566
"required": true,
67+
"autocomplete": "new-password",
6668
"disabled": false,
6769
"node_type": "input"
6870
},

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=link-case=should_link_a_connection_even_if_user_does_not_have_oidc_credentials_yet.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=link-case=should_not_be_able_to_link_a_connection_which_already_exists.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"name": "traits.email",
2020
"type": "email",
2121
"required": true,
22+
"autocomplete": "email",
2223
"disabled": false,
2324
"node_type": "input"
2425
},
@@ -63,6 +64,7 @@
6364
"name": "password",
6465
"type": "password",
6566
"required": true,
67+
"autocomplete": "new-password",
6668
"disabled": false,
6769
"node_type": "input"
6870
},

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=link-case=should_not_be_able_to_link_an_non-existing_connection.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"name": "traits.email",
2020
"type": "email",
2121
"required": true,
22+
"autocomplete": "email",
2223
"disabled": false,
2324
"node_type": "input"
2425
},
@@ -63,6 +64,7 @@
6364
"name": "password",
6465
"type": "password",
6566
"required": true,
67+
"autocomplete": "new-password",
6668
"disabled": false,
6769
"node_type": "input"
6870
},

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=unlink-case=should_not_be_able_to_unlink_a_connection_not_yet_linked-flow=fetch.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=unlink-case=should_not_be_able_to_unlink_a_connection_not_yet_linked-flow=json.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"name": "traits.email",
2020
"type": "email",
2121
"required": true,
22+
"autocomplete": "email",
2223
"disabled": false,
2324
"node_type": "input"
2425
},
@@ -63,6 +64,7 @@
6364
"name": "password",
6465
"type": "password",
6566
"required": true,
67+
"autocomplete": "new-password",
6668
"disabled": false,
6769
"node_type": "input"
6870
},

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=unlink-case=should_not_be_able_to_unlink_an_non-existing_connection-flow=fetch.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=unlink-case=should_not_be_able_to_unlink_an_non-existing_connection-flow=json.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"name": "traits.email",
2020
"type": "email",
2121
"required": true,
22+
"autocomplete": "email",
2223
"disabled": false,
2324
"node_type": "input"
2425
},
@@ -63,6 +64,7 @@
6364
"name": "password",
6465
"type": "password",
6566
"required": true,
67+
"autocomplete": "new-password",
6668
"disabled": false,
6769
"node_type": "input"
6870
},

selfservice/strategy/oidc/.snapshots/TestSettingsStrategy-suite=unlink-case=should_not_be_able_to_unlink_the_last_remaining_connection-flow=fetch.json

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
},
1515
{
1616
"attributes": {
17+
"autocomplete": "email",
1718
"disabled": false,
1819
"name": "traits.email",
1920
"node_type": "input",
@@ -58,6 +59,7 @@
5859
},
5960
{
6061
"attributes": {
62+
"autocomplete": "new-password",
6163
"disabled": false,
6264
"name": "password",
6365
"node_type": "input",

0 commit comments

Comments
 (0)