mirror of
https://github.com/lldap/lldap.git
synced 2026-04-26 00:36:01 +03:00
[PR #30] [MERGED] Implement a GraphQL endpoint and use it in the client #502
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#502
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/lldap/lldap/pull/30
Author: @nitnelave
Created: 8/26/2021
Status: ✅ Merged
Merged: 8/30/2021
Merged by: @nitnelave
Base:
main← Head:graphql📝 Commits (10+)
ea09c83Update actix libraries4c0232cImplement basic GraphQL endpoint with authe685203Simplify get_user_groups to take a &str9e5a857cli: introduce the export_graphql_schema commandc0f564cerrors: use anyhow::Context everywhere8e50506app: Migrate list_users to use the graphql clientee21c2fapp: refactor API methods with empty responses0cf7b76api: add the rest of the fields to Userd2d7274Migrate datetimes to UTCcc2a4b1jwt: Harden check by hardcoding accepted algorithms📊 Changes
28 files changed (+1057 additions, -154 deletions)
View changed files
📝
.github/workflows/rust.yml(+5 -0)📝
Cargo.lock(+298 -0)📝
Cargo.toml(+2 -0)📝
app/Cargo.toml(+1 -0)➕
app/queries/list_users.graphql(+10 -0)📝
app/src/api.rs(+85 -64)📝
app/src/create_user.rs(+4 -4)➕
app/src/graphql.rs(+1 -0)📝
app/src/lib.rs(+1 -0)📝
app/src/login.rs(+3 -4)📝
app/src/user_table.rs(+29 -15)📝
model/src/lib.rs(+2 -2)➕
schema.graphql(+45 -0)📝
src/domain/handler.rs(+2 -2)📝
src/domain/sql_backend_handler.rs(+4 -10)📝
src/domain/sql_tables.rs(+3 -3)📝
src/infra/auth_service.rs(+53 -19)📝
src/infra/cli.rs(+24 -0)📝
src/infra/configuration.rs(+10 -13)➕
src/infra/graphql/api.rs(+91 -0)...and 8 more files
📄 Description
This PR introduces a new endpoint as a GraphQL endpoint. That will help simplify introducing new REST methods (as GraphQL queries instead) and apply best practices.
Auth is still done separately using OPAQUE.
Eventually,
lldap_modelcan be stripped to just theopaquemodule, since the rest of the data layout is communicated through the GraphQL schema only, simplifying documentation and client integration.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.