Comments (8)
we know that possibility to use request.host but this is not a good pratice, and can cause security issues.
from cassette.
We could add multiple hosts in the config.yml
and then we could use the request.host
as the service for validation, but verifying if the service is in the config.yml
.
WDYT?
from cassette.
suggestions:
- build a more specialized controller filter for this use case
- provide a separate configuration entry for the "alternative" services so current configs don't break
from cassette.
@ricardotealdi This can be a cool approach, we can auto detect the service key value type, and assume a default beheviour.
from cassette.
+1
from cassette.
When there are multiple hosts actually the cache doesnt work, for example:
Im authenticating with first host and generate some ticket, if i try to authenticate again with the same ticket but another host the ticket will be valid cause its in the expire time.
from cassette.
@fagnerpereira Great point! There is a bug on the ticket caching. Even if we implement something to allow for multiple hosts, the ticket caching won't validate a different service/host.
from cassette.
The ticket just be valid with our service, the cache key will should be a hash of key+service :p
from cassette.
Related Issues (13)
- Use Net::HTTP
- Extract rails functionalities to a separate gem
- Create a test for NullStore HOT 1
- Add travis-ci or other integration service
- Version 1.1.4 broken compatibility with Rails 3
- Drop dependency on activesupport HOT 2
- It is not possible to use dalli (or memcache) store HOT 3
- Rubycritic gem installation to insurance the code quality
- Dockerize project to make development easier HOT 1
- Drops support for EOL rubies and adds for newers versions!
- Add specific rubocop for tests HOT 6
- Use GitHub Actions instead TravisCI HOT 1
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 cassette.