mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
Change the authentication address to /auth
This commit is contained in:
parent
d5cb53ae8a
commit
6cb06b0e9f
@ -52,7 +52,7 @@ impl HostService {
|
|||||||
request: BindRequest,
|
request: BindRequest,
|
||||||
callback: Callback<Result<String>>,
|
callback: Callback<Result<String>>,
|
||||||
) -> Result<FetchTask> {
|
) -> Result<FetchTask> {
|
||||||
let url = "/api/authorize";
|
let url = "/auth";
|
||||||
let handler = move |response: Response<Result<String>>| {
|
let handler = move |response: Response<Result<String>>| {
|
||||||
let (meta, maybe_data) = response.into_parts();
|
let (meta, maybe_data) = response.into_parts();
|
||||||
let message = maybe_data
|
let message = maybe_data
|
||||||
|
@ -262,8 +262,8 @@ fn http_config<Backend>(
|
|||||||
"/{filename:(index\\.html|main\\.js)?}",
|
"/{filename:(index\\.html|main\\.js)?}",
|
||||||
web::get().to(index),
|
web::get().to(index),
|
||||||
)
|
)
|
||||||
.service(web::resource("/api/authorize").route(web::post().to(post_authorize::<Backend>)))
|
.service(web::resource("/auth").route(web::post().to(post_authorize::<Backend>)))
|
||||||
.service(web::resource("/api/authorize/refresh").route(web::get().to(get_refresh::<Backend>)))
|
.service(web::resource("/auth/refresh").route(web::get().to(get_refresh::<Backend>)))
|
||||||
// API endpoint.
|
// API endpoint.
|
||||||
.service(
|
.service(
|
||||||
web::scope("/api")
|
web::scope("/api")
|
||||||
|
Loading…
Reference in New Issue
Block a user