Comments (10)
Same here... :/
from ember-simple-auth-token.
Hey thanks for reporting and sorry for the trouble. I'll look into this today. I'm in the process of rewriting how this is packaged using ember addon <addon-name>
and getting some tests done.
from ember-simple-auth-token.
👍 Gracias josé!
from ember-simple-auth-token.
@wieseljonas @marcemira A couple of questions to help me debug this. I just created a project from scratch and got it working.
- Are both of you using ember-data?
- Is the API you're connecting to on the same domain/ip? Wondering if it's a
crossOriginWhitelist
issue.
from ember-simple-auth-token.
I'll give it as spin and get back to you @jpadilla
from ember-simple-auth-token.
@jpadilla While building my app I've encountered this error.
My API is on http://localhost:3000 while the page is served from http://0.0.0.0:4200. I'm also using ember-data.
Adding the API IP address in the crossOriginWhitelist
configuration property fixed the issue.
from ember-simple-auth-token.
@rbartoli thanks for confirming
from ember-simple-auth-token.
@wieseljonas @marcemira @rbartoli I've been working into refactoring this to use the new ember-cli's ember addon
feature as well as adding tests.
I've created a new branch, refactor with the current progress which seems to be working on an example project. All tests are passing.
I'd like some feedback on it and if you could try it out and report any weird things, that'd be awesome.
from ember-simple-auth-token.
Just released v0.4.0.
from ember-simple-auth-token.
Header is not present in request.
ENV['simple-auth'] = {
crossOriginWhitelist: ['*'],
authorizer: 'simple-auth-authorizer:token',
authenticationRoute: '/',
routeAfterAuthentication: '/photos',
store: 'simple-auth-session-store:local-storage'
};
ENV['simple-auth-token'] = {
serverTokenEndpoint: 'http://my-host/login',
identificationField: 'identification',
passwordField: 'password',
tokenPropertyName: 'token',
authorizationPrefix: 'Bearer ',
authorizationHeaderName: 'Authorization',
headers: {}
};
Backend response {"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0MzcxOTk5NDR9.CXk7Adw19d43dWq0PsisAg1YQilxYMeIgif-rm0rEv0"}
from ember-simple-auth-token.
Related Issues (20)
- Demo app not working due to CORS issue HOT 2
- Some browser cannot write local Storage
- Possible to get a beta release that is is sync with ember-simple-auth 3.1.0-beta.0? HOT 71
- Travis CI HOT 1
- CI Integration HOT 1
- Release a version compatible with ESA v3.1.0 HOT 5
- Request to update dependency on ember-get-config to 0.3.0 HOT 3
- Refresh token after computer sleep HOT 10
- Fastboot best practice HOT 1
- Addon incompatible with latest version of ember-simple-auth HOT 3
- Transferring Ownership HOT 8
- addon/authenticators/jwt restore not called when page is refreshed HOT 1
- Dependency on old version of ember-cli-babel HOT 1
- Support for ESA v5 and v6 HOT 1
- refreshAccessToken not called on built project on Safari
- Thoughts on dropping support for very old ember and simple auth? HOT 1
- Updating the addon HOT 7
- Ember 5 support HOT 1
- server crash when using JWT with fastboot HOT 1
- Help Understanding RefreshLeeway
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 ember-simple-auth-token.