Giter Club home page Giter Club logo

Comments (5)

osafi avatar osafi commented on July 29, 2024 3

@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.

mauriciovigolo avatar mauriciovigolo commented on July 29, 2024

@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.

mauriciovigolo avatar mauriciovigolo commented on July 29, 2024

@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.

satyaram413 avatar satyaram413 commented on July 29, 2024

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.

satyaram413 avatar satyaram413 commented on July 29, 2024

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)

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.