{"id":70268,"date":"2020-01-04T11:36:35","date_gmt":"2020-01-04T06:06:35","guid":{"rendered":"https:\/\/www.vskills.in\/certification\/tutorial\/?p=70268"},"modified":"2024-04-12T14:33:25","modified_gmt":"2024-04-12T09:03:25","slug":"web-forms-authentication","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/","title":{"rendered":"Web Forms Authentication"},"content":{"rendered":"<h1><strong>Web Forms Authentication<\/strong><\/h1>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg\" alt=\"Web Forms Authentication\" width=\"590\" height=\"332\"><\/p>\n<p>Let&#8217;s start by learning Web Forms Authentication. Some web services require form based authentication. In order to be able to use API calls, you typically need to launch a browser, log into a web form, and then establish a session.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p>A form that asks for authentication credentials might look like this<\/p>\n<p>&lt;form method=&#8221;post&#8221; action=&#8221;\/login&#8221;&gt;<\/p>\n<p>Username: &lt;input type=&#8221;text&#8221; name=&#8221;username&#8221; required&gt;<\/p>\n<p>Password: &lt;input type=&#8221;password&#8221; name=&#8221;password&#8221; required&gt;<\/p>\n<p>&lt;input type=&#8221;submit&#8221; value=&#8221;Login&#8221;&gt;<\/p>\n<p>&lt;\/form&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>This would render a HTML form:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-142885 aligncenter\" src=\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/11\/Image-1-1.png\" alt=\"\" width=\"502\" height=\"54\"><\/p>\n<p><strong>SoapUI Test Case<\/strong><\/p>\n<p>The way to deal with this in SoapUI would be to:<\/p>\n<ul>\n<li>Create a HTTP Request Step with the appropriate settings (username, password, method).<\/li>\n<li>Set the TestStep to keep the session alive with the option Maintain HTTP Session.<\/li>\n<\/ul>\n<p><strong>Creating HTTP Test Request<\/strong><\/p>\n<p>In your TestCase, create an HTTP Request Step.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-142887 aligncenter\" src=\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/11\/Image-2-1.png\" alt=\"\" width=\"582\" height=\"462\"><\/p>\n<p>Username is \u201cadmin\u201d, and the password \u201cp@ssw0rd\u201d in this case. The HTTP method is specified as POST.<\/p>\n<p><strong>Maintaining Session<\/strong><\/p>\n<p>When you have a HTTP Request TestStep that works, you can set the TestCase to maintain the session provided by the TestStep.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Open the TestCase window.<\/li>\n<li>Click Option.<\/li>\n<li>In TestCase Options, check the Maintain HTTP Session checkbox.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-142888 aligncenter\" src=\"https:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2019\/11\/Image-3-1.png\" alt=\"\" width=\"606\" height=\"376\"><\/p>\n<p class=\"VSKILLbodytext\">You should now be able to add SOAP and\/or REST test steps further in the test case that will maintain the authenticated session.<\/p>\n<p><strong>Make your resume stand out and become a Certified SoapUI Testing Professional. <a href=\"https:\/\/www.vskills.in\/practice\/index.php?route=test\/search&amp;search=SOAP\">Try free practice tests here!<\/a><\/strong><\/p>\n<p><strong>A great career is just a certification away. So, practice and validate your skills to become a <a href=\"https:\/\/www.vskills.in\/certification\/testing\/soapui-testing-certification\">Certified SoapUI Testing Professional.<\/a><\/strong><\/p>\n\n\n<p><strong><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/soapui-testing-tutorials\/\" target=\"_blank\" rel=\"noreferrer noopener\">Go back to Tutorial<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web Forms Authentication &nbsp; Let&#8217;s start by learning Web Forms Authentication. Some web services require form based authentication. In order to be able to use API calls, you typically need to launch a browser, log into a web form, and then establish a session. Example: A form that asks for authentication credentials might look like&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[8032],"tags":[8111],"class_list":["post-70268","page","type-page","status-publish","hentry","category-soapui","tag-web-forms-authentication"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Web Forms Authentication - Vskills Tutorial<\/title>\n<meta name=\"description\" content=\"Enhance and Upgrade your Web Forms Authentication skills for better career opportunities. Become a Certified SoapUI Testing Professional Now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Web Forms Authentication - Vskills Tutorial\" \/>\n<meta property=\"og:description\" content=\"Enhance and Upgrade your Web Forms Authentication skills for better career opportunities. Become a Certified SoapUI Testing Professional Now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T09:03:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/\",\"name\":\"Web Forms Authentication - Vskills Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg\",\"datePublished\":\"2020-01-04T06:06:35+00:00\",\"dateModified\":\"2024-04-12T09:03:25+00:00\",\"description\":\"Enhance and Upgrade your Web Forms Authentication skills for better career opportunities. Become a Certified SoapUI Testing Professional Now!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#primaryimage\",\"url\":\"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg\",\"contentUrl\":\"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Web Forms Authentication\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Web Forms Authentication - Vskills Tutorial","description":"Enhance and Upgrade your Web Forms Authentication skills for better career opportunities. Become a Certified SoapUI Testing Professional Now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/","og_locale":"en_US","og_type":"article","og_title":"Web Forms Authentication - Vskills Tutorial","og_description":"Enhance and Upgrade your Web Forms Authentication skills for better career opportunities. Become a Certified SoapUI Testing Professional Now!","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T09:03:25+00:00","og_image":[{"url":"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/","name":"Web Forms Authentication - Vskills Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg","datePublished":"2020-01-04T06:06:35+00:00","dateModified":"2024-04-12T09:03:25+00:00","description":"Enhance and Upgrade your Web Forms Authentication skills for better career opportunities. Become a Certified SoapUI Testing Professional Now!","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#primaryimage","url":"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg","contentUrl":"https:\/\/cdn.lynda.com\/course\/5034180\/5034180-637049412139391923-16x9.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/web-forms-authentication\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Web Forms Authentication"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/70268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=70268"}],"version-history":[{"count":6,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/70268\/revisions"}],"predecessor-version":[{"id":89779,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/70268\/revisions\/89779"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=70268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=70268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=70268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}