Giter Club home page Giter Club logo

Comments (5)

angular101 avatar angular101 commented on September 4, 2024 1

Hi @mauriciovigolo,

Thanks for rapid response very much appreciated.

I tried using 'graphql' and I still get same problem - it includes the auth header every second time.

if I use '.*' it works and never includes the auth header.

I wonder if this has any bearing?:
https://stackoverflow.com/questions/3811890/javascript-regular-expression-fails-every-other-time-it-is-called

from keycloak-angular.

angular101 avatar angular101 commented on September 4, 2024 1

@mauriciovigolo Brilliant I look forward to the new release! Thanks for all your hard work.

from keycloak-angular.

mauriciovigolo avatar mauriciovigolo commented on September 4, 2024

Hello @angular101,

I think that the problem may be related with the URL and special characters. The bearerExcludedUrls must be a valid regex. In your case, is it necessary to use the full url? By the way, you will have to deal with different environments for testing, production, development.
Another idea is to use the simple path like:

  bearerExcludedUrls: [
    'graphql'
  ]

If not possible, you will have to build a valid regex. Take a look and if it doesn't helps you, let me know.

Thank you @angular101!

from keycloak-angular.

mauriciovigolo avatar mauriciovigolo commented on September 4, 2024

Hello @angular101,

You are right! Just replicated this situation and the problem also happened to me.
It seems to be related to the stackoverflow post you mentioned and by the way, for our case, there is no need to be global as if there is one occurrence in the given URL it should exclude, so excellent!

I will release a fix for this. And again, thank you for help @angular101!!

from keycloak-angular.

mauriciovigolo avatar mauriciovigolo commented on September 4, 2024

@angular101, nice work for the community!

Version 1.2.5 was released with the bug fix. Wish you the best!

from keycloak-angular.

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.