Comments (5)
agreed, I've been working on adding that.
from app-restconsole.
Seconded
from app-restconsole.
Guys, I've never used digest auth before, is there a quick and easy way to test a server side implementation of it?
can you point me to some service already out there that uses it so I can test against?
thanks.
from app-restconsole.
Sorry, I don't know a service to test.
But I wrote a simple example of a digest server in ruby using rack.
- Install ruby and rack (if you don't is easy to find tutorials in web)
- Create a file with the contents below and save as config.ru
- Run rackup at command line
require "rubygems"
require "rack"
class AuthDigest
REALM = "realm"
OPAQUE = "opaque"
USERNAME = "username"
PASSWORD = "password"
def initialize(app)
@app = app
end
def call(env)
secure_app = Rack::Auth::Digest::MD5.new(@app) do |username|
Digest::MD5.hexdigest("#{username}:#{REALM}:#{PASSWORD}") if USERNAME == username
end
secure_app.realm = REALM
secure_app.opaque = OPAQUE
secure_app.passwords_hashed = true
secure_app.call(env)
end
end
App = Rack::Builder.new
use AuthDigest
map "/" do
[200, {"Content-Type" => "text/plain"}, "Authenticated"]
end
end
from app-restconsole.
thank you! this is exactly what I needed.
from app-restconsole.
Related Issues (20)
- Dialog box not dismissed
- Cookies / Accept-Encoding not shown in Request Headers tab
- "Source Code" and "Issues" links are broken HOT 1
- Repeated query parameters are not supported
- Feature Request: Larger Preview Panel HOT 1
- Feature Request: Provide option to keep 'Send, Get, Post, etc' bar on the screen at all times HOT 1
- All GitHub links at the bottom of app go to wrong repo HOT 4
- Typo in Request Method name HOT 1
- CONNECT HTTP Method spelled wrong
- Install without google login
- Remember and offer selection of multiple OAuth configurations
- Incorrect label for "Request Headers" in Custom Headers
- Wrong OAuth signatures
- Proxy support HOT 1
- Allow the header used for oauth to be specified
- Spelling error "Query sliing"
- Feature Request: copy request from network viewer
- POST parameters are not sent HOT 5
- OAuth2 & OAuth2 Implicit grant
- https support 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 app-restconsole.