-
-
Notifications
You must be signed in to change notification settings - Fork 128
Add the new identifier_first argument to prompts #187
Add the new identifier_first argument to prompts #187
Conversation
f0aceed
to
aebcecd
Compare
cc @alexkappa |
Hi @alexkappa checking in here, would love to get this and the terraform PR reviewed soon. |
management/prompt.go
Outdated
@@ -3,6 +3,9 @@ package management | |||
type Prompt struct { | |||
// Which login experience to use. Can be `new` or `classic`. | |||
UniversalLoginExperience string `json:"universal_login_experience,omitempty"` | |||
|
|||
// IdentifierFirst determines if the login screen prompts for just the identifier, identifier and password first. | |||
IdentifierFirst bool `json:"identifier_first,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be *bool
to follow the convention of fields in all the other structs? It would then better deal with null
responses from the API.
Looks like the existing UniversalLoginExperience
field in this struct should be updated too, but we can do that in another PR and discuss first (it'd be a breaking change).
If updated to *bool
you should run go generate ./...
to generate an accessor for the field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to *bool
. I don't think the string field needs to be a pointer since an empty string will get handled by omitempty
were false
would not.
As a side note after running generate it looks like it generated a bunch of things from other PRs. It would be great to run everything up until the tests on every PR to ensure fmt/generate is good before merging to master.
7069be4
to
dc37a5a
Compare
@paddycarey anything else I can do here before merging? Once this is merged/released I can update the terrafrom side. Thanks! |
@alexkappa @paddycarey what can I do to get this merged? |
@alexkappa please let me know what we can do here. |
2af2c05
to
acc0e65
Compare
@yvovandoorn updated as requested. Thanks! |
Hey @kpurdon. Thanks for that! Unfortunately the test for it isn't passing locally:
Which got me to think on how you're testing. I see that you've imported the Rather than doing:
You can use Than rather than using literal strings (e.g. Then you can use
which would be consistent with the other tests in this SDK. |
08b633f
to
0d85fde
Compare
@yvovandoorn updated the tests and confirmed they are passing locally
|
0d85fde
to
c4f85c9
Compare
💥 🚀 |
Proposed Changes
Adds the new
identifier_first
argument to prompts. I will update the terraform provider as well once this lands and is tagged.https://support.auth0.com/notifications/5fff0ab3f28427000a77941e
Acceptance Test Output
Community Note