![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
devise-proxy is a standalone Rack Middleware application that authenticates a username/password against a devise-powered backend application before forwarding the original HTTP request to a single host of your choosing.
Authentication is done on every request, so it is advisable to use devise-proxy sparingly.
devise-proxy will return a 502 if a network connection to your authentication host cannot be established.
rackup config.ru
You'll need a config/devise-proxy.yml file to start the application. For example:
authentication:
hostname: localhost
port: 3000
forwarding:
hostname: localhost
port: 3000
There is a sample init script in extra/. This script will start the proxy as a daemon on port 6969 as a given user ("tater" in our example). Edit for your environment. Note that you may need to edit the "exec" path. In the sample it points to an rvm wrapper script created using the following command: "rvm wrapper ruby-1.9.3 bootup rackup".
If your client complains about infinite redirects, you're probably forwarding traffic to a hostname that returns a 302. This may be the case if you request example.com, but the server redirects you to www.example.com. When this occurs, the client will receive the 302 with the preferred hostname try again with a new URL. Since the proxy tosses out the hostname portion of the URL and replaces it with whatever's in the config file, however, the proxy will forward to the same bad hostname, get another 302, and return it to the client, introducing an infinite loop that the browser should eventually catch and stop. This shouldn't be a big deal if you're forwarding to your own well-behaved devise app, but is worth mentioning.
Preston Lee
FAQs
Unknown package
We found that devise-proxy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.