Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update URLs in the sinatra example

  • Loading branch information...
commit 9d1fe6358e5efe526fbe86e75806216a133eb191 1 parent 1cc834b
@fmarier fmarier authored
Showing with 3 additions and 4 deletions.
  1. +1 −2  ruby/sinatra/app.rb
  2. +2 −2 ruby/sinatra/views/layout.haml
View
3  ruby/sinatra/app.rb
@@ -24,7 +24,7 @@ def getGravatarURL
post "/auth/login" do
if params[:assertion]
- data = Nestful.post "https://browserid.org/verify", :format => :json, :params => { :assertion => "#{params[:assertion]}", :audience => "http://#{request.host}:#{request.port}" }
+ data = Nestful.post "https://verifier.login.persona.org/verify", :format => :json, :params => { :assertion => "#{params[:assertion]}", :audience => "http://#{request.host}:#{request.port}" }
if data["status"] == "okay"
session[:email] = data["email"]
return data.to_json
@@ -37,4 +37,3 @@ def getGravatarURL
session[:email] = nil
redirect "/"
end
-
View
4 ruby/sinatra/views/layout.haml
@@ -2,7 +2,7 @@
%html{:lang => "en"}
%head
%script{:src => "http://code.jquery.com/jquery-1.7.2.min.js", :type => "text/javascript"}
- %script{:src => "https://browserid.org/include.js", :type => "text/javascript"}
+ %script{:src => "https://login.persona.org/include.js", :type => "text/javascript"}
%script{:src => "/app.js", :type => "text/javascript"}
%body
- =yield
+ =yield
Please sign in to comment.
Something went wrong with that request. Please try again.