title: getting "OAUTH_ERROR" while attempting login to Okta
body: <p>I have set up an angular app running on <code>http://localhost:4200</code> on my local server. I am using <a href="https://github.com/okta/okta-signin-widget" rel="nofollow noreferrer">Okta-signin-widget</a> as authentication.
  When submitting the login form I get the following error in console:</p>
  
  <pre><code>error.errorCode: invalid_request, error.description: The 'redirect_uri' parameter 
  must be an absolute URI that is whitelisted in the client app settings.
  </code></pre>
  
  <p>I googled but what I found was adding <code>http://localhost:4200</code> to the <code>API&gt;Trusted Origins</code> in the Okta's Developer Console, but that did not help (it was already defined).</p>
  
  <p>I have the following in my Okta applicaiton setting:</p>
  
  <pre><code>Login redirect URIs:              http://localhost:4200/implicit/callback   
                                    http://localhost:4200/urlform
  </code></pre>
  
  <p>and defined the redirect URI in the angular login code like this:</p>
  
  <pre><code>    this.widget.renderEl({
        el: '#okta-signin-container'},
        (res) =&gt; {
          if (res.status === 'SUCCESS') {
            this.signIn.loginRedirect('http://localhost:4200/urlform', { sessionToken: res.session.token });
            // Hide the widget
            this.widget.remove();
          }
        },
        (err) =&gt; {
          throw err;
        }
      );
  </code></pre>
  
  <p>But same problem. I am not sure if I am working on the right page.</p>
  
  <p>Any ideas is highly appreciated.</p>