You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if params[:response_type] and params[:response_type]=="code"
@response_type = "code"
else
raise "request must have a response_type parameter of 'code'"
end
if params[:client_id] # TODO: and valid client_id
@client_id = params[:client_id]
else
raise "request must have a client_id"
end
if params[:redirect_uri]
@redirect_uri = params[:redirect_uri]
else
raise "request must have a redirect_uri"
end
if params[:state]
@state = params[:state]
else
raise "request must have a state"
end
if params[:code_challenge]
@code_challenge = params[:code_challenge]
else
raise "Request must have a code_challenge. Haven requires IndieAuth clients to use PKCE and provide a code_challenge. This client (#{@client_id}) may not be compatible."
end
if params[:code_challenge_method] and params[:code_challenge_method]=="S256"