Comments (5)
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.
@mauriciovigolo Brilliant I look forward to the new release! Thanks for all your hard work.
from keycloak-angular.
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.
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.
@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)
- Support KC 24.x.x HOT 6
- Catch sign out event or redirect to ssop event
- keycloak-angular - next version improvements HOT 1
- Bug in package.json version 15.2.0 HOT 3
- Keycloak setup for Single SPA angular Project
- HttpClient Interceptor not working HOT 2
- Configure updateToken minValidity in HTTP Interceptor
- Standalone bootstrap: withEnabledBlockingInitialNavigation() causes isLoggedIn() to return false in AuthGuard HOT 2
- Add setup instructions for standalone bootstrap
- Logout the user if he is idle
- Support Angular v18 HOT 2
- Token refresh fails with 400 invalid_grant Token is not active HOT 2
- If Keycloak Auth Domain is down, then Angular 16 keycloak will receive white-page and fail compilation at AppModule level
- Refresh Token is unused HOT 2
- ERROR Error: An error happened during access validation. Details:TypeError: Cannot read properties of undefined (reading 'resourceAccess') HOT 3
- Support Keycloak 25.x.x HOT 1
- Subscription to keycloak Events$ outside Keycloak initialization function do not work
- User logs out after page refresh HOT 1
- Possible to avoid reload when refresh token expired, but SSO session gives new token?
- Keycloak: Angular 17 app logs out whenever I refresh the page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keycloak-angular.