<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Integration testing - How do I deal with authentication? in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-testing-How-do-I-deal-with-authentication/m-p/72560#M44826</link>
    <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"&gt;&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am trying to setup some integration tests for a web API. Some of the routes in the controller I am interested in use the [Authorize] attribute, backed by JWT authentication using Identity Server 4, to prevent unauthorized from accessing certain resources.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'd like to "disable" authorization for testing purposes: replacing Identity Server with a "fake" authorizer that always gives green light to all requests.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am using TestServer to run the API I want to test in memory and I'd like to use ConfigureTestServices to override the authorisation method, but I can't find any easy way to stub/mock it.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Does anyone have any relevant experience with a similar problem?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 20 Jul 2020 10:24:20 GMT</pubDate>
    <dc:creator>yuvismahi2</dc:creator>
    <dc:date>2020-07-20T10:24:20Z</dc:date>
    <item>
      <title>Integration testing - How do I deal with authentication?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-testing-How-do-I-deal-with-authentication/m-p/72560#M44826</link>
      <description>&lt;DIV class="_3xX726aBn29LDbsDtzr_6E _1Ap4F5maDtT1E1YuCiaO0r D3IL3FD0RFy_mkKLPwL4"&gt;&lt;DIV class="_292iotee39Lmt0MkQZ2hPV RichTextJSON-root"&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am trying to setup some integration tests for a web API. Some of the routes in the controller I am interested in use the [Authorize] attribute, backed by JWT authentication using Identity Server 4, to prevent unauthorized from accessing certain resources.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I'd like to "disable" authorization for testing purposes: replacing Identity Server with a "fake" authorizer that always gives green light to all requests.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;I am using TestServer to run the API I want to test in memory and I'd like to use ConfigureTestServices to override the authorisation method, but I can't find any easy way to stub/mock it.&lt;/P&gt;&lt;P class="_1qeIAgB0cPwnLhDF9XSiJM"&gt;Does anyone have any relevant experience with a similar problem?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jul 2020 10:24:20 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-testing-How-do-I-deal-with-authentication/m-p/72560#M44826</guid>
      <dc:creator>yuvismahi2</dc:creator>
      <dc:date>2020-07-20T10:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Integration testing - How do I deal with authentication?</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-testing-How-do-I-deal-with-authentication/m-p/80102#M50460</link>
      <description>&lt;P&gt;&lt;SPAN&gt;One can access the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://router-loginnet.dev/netgear-router-login/" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Netgear router login&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;portal via the&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;web address. In case you are facing a problem in accessing the login page via a web address, you can take instant help from our expert technicians&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Nov 2021 10:47:14 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Integration-testing-How-do-I-deal-with-authentication/m-p/80102#M50460</guid>
      <dc:creator>patriciashaw</dc:creator>
      <dc:date>2021-11-27T10:47:14Z</dc:date>
    </item>
  </channel>
</rss>

