fix(auth): allow password managers to pre-fill input fields (#9390)
HTML disallows having multiple IDs with the same value. In reality this is for 1Password's feature where you can create custom fields named like input IDs and 1Password fill pre-fill that.
This commit is contained in:
@@ -18,7 +18,7 @@ describe("Check client_secret for OAuth2 Authorization Code flow with and withou
|
||||
.contains("authorizationCode with PKCE")
|
||||
.get(".flow")
|
||||
.contains("authorizationCode with PKCE")
|
||||
.get("#client_secret")
|
||||
.get("#client_secret_authorizationCode")
|
||||
.should("exist")
|
||||
})
|
||||
|
||||
@@ -41,7 +41,7 @@ describe("Check client_secret for OAuth2 Authorization Code flow with and withou
|
||||
.contains("authorizationCode")
|
||||
.get(".flow")
|
||||
.contains("authorizationCode")
|
||||
.get("#client_secret")
|
||||
.get("#client_secret_authorizationCode")
|
||||
.should("exist")
|
||||
})
|
||||
})
|
||||
|
||||
@@ -30,11 +30,11 @@ describe("OAuth2 Application flow", function() {
|
||||
.click()
|
||||
|
||||
.get("div.modal-ux-content > div:nth-child(2)").within(() => {
|
||||
cy.get("#client_id")
|
||||
cy.get("#client_id_application")
|
||||
.clear()
|
||||
.type("confidentialApplication")
|
||||
|
||||
.get("#client_secret")
|
||||
.get("#client_secret_application")
|
||||
.clear()
|
||||
.type("topSecret")
|
||||
|
||||
|
||||
@@ -18,11 +18,11 @@ describe("OAuth2 Password flow", function() {
|
||||
.get("#password_type")
|
||||
.select("basic")
|
||||
|
||||
.get("#client_id")
|
||||
.get("#client_id_password")
|
||||
.clear()
|
||||
.type("application")
|
||||
|
||||
.get("#client_secret")
|
||||
.get("#client_secret_password")
|
||||
.clear()
|
||||
.type("secret")
|
||||
|
||||
@@ -75,11 +75,11 @@ describe("OAuth2 Password flow", function() {
|
||||
.get("#password_type")
|
||||
.select("request-body")
|
||||
|
||||
.get("#client_id")
|
||||
.get("#client_id_password")
|
||||
.clear()
|
||||
.type("application")
|
||||
|
||||
.get("#client_secret")
|
||||
.get("#client_secret_password")
|
||||
.clear()
|
||||
.type("secret")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user