Comments (5)
@mauriciovigolo, yes Authorization is the standard for Http. Unfortunately the services our SPA needs to call use a different header for authentication.
The suggested change is to default to Authorization but have the option to change it.
Requests to Keycloak would continue to use the default Authorization header as it is hard coded in keycloak.js
Happy to contribute, thanks for the great project!
from keycloak-angular.
@osafi, first of all, thanks for contributing to the project!
I have a question about this feature: isn't the Authorization header a default value for Http and for keycloak?
from keycloak-angular.
@osafi, this feature certainly may help others with the same situation you are facing.
Thanks for PR #54! Great to have your contribution!
PS: This will be shipped on release 6.0.0, okay?
from keycloak-angular.
Hi @mauriciovigolo,
So I used your Angular repo, and integrated with my application, and now i see there is a key called Authorization in my request header, but however my api accepts access_token as key and value of access_token, how can i change my request header key? Please help
from keycloak-angular.
Hi @mauriciovigolo ,
there is only a declared class of KeyCloak in service file, if I change my header name in keycloak.js then when I push my code on someother environment, this will cause a problem.
from keycloak-angular.
Related Issues (20)
- How to pass external login (from native app) JWT to keycloak-angular in webview? HOT 1
- how to login keycloak angular application in embedded browser if user already login in normal browser
- Unwanted GET request for {config.url}/realms/{config.realm}/account on init HOT 1
- Its taking around 3 to 4 seconds to initialise key-cloak in chrome 115 HOT 2
- refresh page HOT 1
- keycloak-js 22 support in v13 HOT 3
- Angular v.17 update HOT 5
- KeycloakService#getUserRoles() filter by resource HOT 2
- Loop after keycloak redirect to angular website HOT 6
- Support for Pure Function-Based Guards in Angular HOT 2
- Support for Keycloak v23 HOT 9
- The JSDoc for getToken states it calls updateToken if necessary, but it does not HOT 1
- How I would know when the session is expired? HOT 1
- Problem with KeycloakService in Angular 17 HOT 1
- KeycloakAuthGuard example HOT 4
- Server-side rendering (SSR) crash with 'Document not found' error in Keycloak-angular with Angular 17 HOT 10
- keycloakBearerInterceptorFn example HOT 1
- Login method locale is not changing the user locale when the user logs in
- angular crashes with check-sso
- Support KC 24.x.x HOT 6
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.