68 lines
2.4 KiB
Groovy
68 lines
2.4 KiB
Groovy
/*
|
|
* mxisd - Matrix Identity Server Daemon
|
|
* Copyright (C) 2017 Maxime Dor
|
|
*
|
|
* https://max.kamax.io/
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as
|
|
* published by the Free Software Foundation, either version 3 of the
|
|
* License, or (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package io.kamax.mxisd.controller.v1
|
|
|
|
import io.kamax.mxisd.exception.NotImplementedException
|
|
import org.slf4j.Logger
|
|
import org.slf4j.LoggerFactory
|
|
import org.springframework.web.bind.annotation.RequestMapping
|
|
import org.springframework.web.bind.annotation.RestController
|
|
|
|
import javax.servlet.http.HttpServletRequest
|
|
|
|
import static org.springframework.web.bind.annotation.RequestMethod.GET
|
|
import static org.springframework.web.bind.annotation.RequestMethod.POST
|
|
|
|
@RestController
|
|
class SessionController {
|
|
|
|
private Logger log = LoggerFactory.getLogger(SessionController.class)
|
|
|
|
@RequestMapping(value = "/_matrix/identity/api/v1/validate/{medium}/requestToken", method = POST)
|
|
String init(HttpServletRequest request) {
|
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
|
|
|
throw new NotImplementedException()
|
|
}
|
|
|
|
@RequestMapping(value = "/_matrix/identity/api/v1/validate/{medium}/submitToken", method = [GET, POST])
|
|
String validate(HttpServletRequest request) {
|
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
|
|
|
throw new NotImplementedException()
|
|
}
|
|
|
|
@RequestMapping(value = "/_matrix/identity/api/v1/3pid/getValidated3pid", method = POST)
|
|
String check(HttpServletRequest request) {
|
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
|
|
|
throw new NotImplementedException()
|
|
}
|
|
|
|
@RequestMapping(value = "/_matrix/identity/api/v1/3pid/bind", method = POST)
|
|
String bind(HttpServletRequest request) {
|
|
log.error("{} was requested but not implemented", request.getRequestURL())
|
|
|
|
throw new NotImplementedException()
|
|
}
|
|
|
|
}
|