Comments (3)
You need to set Authorization header for example like this:
this.authOptions = {
headers: {
Authorization: 'Basic ' + authdata,
'Content-Type': 'application/x-www-form-urlencoded'
}
};
And then just call getAccessToken
with options:
this.OAuth.getAccessToken(user, this.authOptions)
from angular-oauth2.
I got a same issue with you and then it's resolved by @baster33 feedback. Thanks @baster33.
I think it has to be fixed. It's incompatible.
from angular-oauth2.
@baster33 explained right. I also answered it on #86.
from angular-oauth2.
Related Issues (20)
- How to resume code which was stopped (401) after getting refreshToken. HOT 2
- Failed to instantiate module {} HOT 6
- Cookies not set HOT 3
- The request interceptor doesn't seem to work, secure flag is off HOT 1
- Uncaught Error: `OAuthProvider` must be configured first.
- Change configuration to authenticate on another server HOT 2
- Issue with queryString.stringify(data) HOT 8
- Some problems with $cookies & headers with Authorization. HOT 2
- Object doesn't support property or method 'headers' HOT 2
- It is possible to use sessionStorage instead of cookies HOT 1
- Any plans to upgrade to Angular 2 (or 4) HOT 5
- Documentation for baseUrl: "/"
- Warning: Tried to load angular more than once. HOT 1
- Excluding authorization header? HOT 1
- 'npm install' is broken HOT 2
- Error in query-string `require` HOT 1
- cannot login with initImplicitFlow
- Unable to open link in new tab or deep link
- How to no pass Token? HOT 1
- revokeToken only removes if server sends something... HOT 2
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 angular-oauth2.