Git Product home page Git Product logo

Comments (4)

Tratcher avatar Tratcher commented on June 14, 2024

??? Those aren't spaces, those are non-printable control characters:
U+200E ‎ e2 80 8e LEFT-TO-RIGHT MARK
http://utf8-chartable.de/unicode-utf8-table.pl?start=8192&number=128

How did you assign this in startup? It's a generated string:

string requestPrefix = Request.Scheme + "://" + Request.Host;

from aspnetkatana.

Praveen-911 avatar Praveen-911 commented on June 14, 2024

Hi Tracther ,

I am reading from config file
_redirectUri = ConfigurationHelper.GetStringValueFromConfig("XXXXXXX");

and assigning it under
app.UseOpenIdConnectAuthentication(new OpenIdConnectAuthenticationOptions
{

                ClientId = _clientID.Trim(),
                Authority = _authority.Trim(),
                RedirectUri=_redirectUri.Trim(),

Please Note Same Application code works fine most of the time while sometime it throws this error.

Thanks,
Praveen

from aspnetkatana.

Tratcher avatar Tratcher commented on June 14, 2024

Yeah, it looks like those characters are coming in from your config file. You should be able to verify that by inspecting _redirectUri. E.g. calling Uri.EscapeDataString(_redirectUri) should make those characters more visible.

As to why it only happens sometimes, I wonder if it only happens when the file is edited by a specific user / machine with international settings.

from aspnetkatana.

muratg avatar muratg commented on June 14, 2024

@Praveen-911 closing this one as it looks like a problem with your side (e.g. someone editing the file.) If you still have problems, please feel free to file another issue. Thanks.

from aspnetkatana.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.