mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 16:32:04 +02:00
Apache SSL configuration, basic tests for Registry app via mod_epp
This commit is contained in:
parent
3d84d37219
commit
7d4142abc2
10 changed files with 172 additions and 64 deletions
|
@ -1,13 +1,15 @@
|
|||
class Epp::SessionsController < ApplicationController
|
||||
protect_from_forgery with: :null_session
|
||||
|
||||
def greeting; end
|
||||
|
||||
def proxy
|
||||
send(params[:command])
|
||||
end
|
||||
|
||||
private
|
||||
def hello
|
||||
render 'greeting'
|
||||
end
|
||||
|
||||
def login
|
||||
render 'login'
|
||||
end
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0
|
||||
epp-1.0.xsd">
|
||||
<response>
|
||||
<result code="1000">
|
||||
<msg lang="en">User test was authenticated. Welcome.</msg>
|
||||
</result>
|
||||
<trID>
|
||||
<clTRID>sample1trid</clTRID>
|
||||
</trID>
|
||||
</response>
|
||||
</epp>
|
12
app/views/epp/sessions/login.xml.builder
Normal file
12
app/views/epp/sessions/login.xml.builder
Normal file
|
@ -0,0 +1,12 @@
|
|||
xml.instruct!
|
||||
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd') do
|
||||
xml.response do
|
||||
xml.result('code' => '1000') do
|
||||
xml.msg('User test was authenticated. Welcome.', 'lang' => 'en')
|
||||
end
|
||||
end
|
||||
|
||||
xml.trID do
|
||||
xml.clTRID 'sample1trid'
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue