├── .gitignore
├── .github
├── FUNDING.yml
└── workflows
│ └── integration.yml
├── .cargo-config.toml
├── docker
└── Dockerfile
├── COPYING
├── src
├── resource
│ ├── workflow_steps.rs
│ ├── key.rs
│ ├── client_registration_policy.rs
│ ├── client_initial_access.rs
│ ├── mod.rs
│ ├── attack_detection.rs
│ ├── client_attribute_certificate.rs
│ ├── client_scopes.rs
│ ├── component.rs
│ ├── roles_by_id.rs
│ └── role_mapper.rs
├── rest
│ ├── generated_rest
│ │ ├── workflow_steps.rs
│ │ ├── key.rs
│ │ ├── client_registration_policy.rs
│ │ ├── mod.rs
│ │ ├── client_initial_access.rs
│ │ ├── attack_detection.rs
│ │ ├── component.rs
│ │ ├── client_attribute_certificate.rs
│ │ ├── client_scopes.rs
│ │ ├── roles_by_id.rs
│ │ ├── client_role_mappings.rs
│ │ ├── role_mapper.rs
│ │ └── groups.rs
│ ├── url_enc.rs
│ ├── default_response.rs
│ ├── manual_rest.rs
│ └── mod.rs
├── builder.rs
├── error.rs
└── lib.rs
├── update.sh
├── docker-compose.yml
├── templates
├── src
│ └── lib.rs
└── README.md
├── examples
├── openapi.patch.toml
├── importconfig.rs
├── resource_adduser.rs
├── adduser.rs
└── metadata.xml
├── MIT-LICENSE
├── UNLICENSE
├── Cargo.toml
└── README.md
/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 | **/*.rs.bk
3 | Cargo.lock
4 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | github: kilork
2 | ko_fi: kilork
3 |
--------------------------------------------------------------------------------
/.cargo-config.toml:
--------------------------------------------------------------------------------
1 | [resolver]
2 | incompatible-rust-versions = "fallback"
--------------------------------------------------------------------------------
/docker/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM quay.io/keycloak/keycloak:${KEYCLOAK_VERSION}
2 | ENTRYPOINT /opt/keycloak/bin/kc.sh
3 | CMD start-dev
--------------------------------------------------------------------------------
/COPYING:
--------------------------------------------------------------------------------
1 | This project is dual-licensed under the Unlicense and MIT licenses.
2 |
3 | You may use this code under the terms of either license.
--------------------------------------------------------------------------------
/src/resource/workflow_steps.rs:
--------------------------------------------------------------------------------
1 | use super::*;
2 |
3 | impl<'a, TS: KeycloakTokenSupplier> KeycloakRealmAdmin<'a, TS> {
4 | //
Workflow Steps
5 | }
6 |
--------------------------------------------------------------------------------
/src/rest/generated_rest/workflow_steps.rs:
--------------------------------------------------------------------------------
1 | use super::*;
2 |
3 | impl KeycloakAdmin {
4 | // Workflow Steps
5 | }
6 | // not all paths processed
7 | // left 247
8 |
--------------------------------------------------------------------------------
/update.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | deno run --allow-env=KEYCLOAK_RUST_VERSION,KEYCLOAK_VERSION,KEYCLOAK_RUST_MAJOR_VERSION --allow-read=Cargo.toml --allow-write=Cargo.toml,api/openapi.json,src/types.rs,src/rest/generated_rest,src/resource --allow-net=keycloak.org,www.keycloak.org --allow-run=cargo,gh,git,handlebars-magic update.ts
--------------------------------------------------------------------------------
/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3.6"
2 | services:
3 | keycloak:
4 | build:
5 | context: docker
6 | args:
7 | KEYCLOAK_VERSION: ${KEYCLOAK_VERSION}
8 | environment:
9 | KEYCLOAK_ADMIN: admin
10 | KEYCLOAK_ADMIN_PASSWORD: password
11 | KC_PROXY: edge
12 | ports:
13 | - "8080:8080"
14 |
--------------------------------------------------------------------------------
/templates/src/lib.rs:
--------------------------------------------------------------------------------
1 | /*!
2 | {{ replace ( render ( read_to_str "templates/README.md" ) ) "```rust" "```rust, no_run" }}
3 | */
4 |
5 | #[cfg(feature = "builder")]
6 | pub mod builder;
7 | #[cfg(feature = "resource")]
8 | pub mod resource;
9 | pub mod types;
10 |
11 | mod error;
12 | mod rest;
13 |
14 | pub use error::KeycloakError;
15 | pub use rest::{
16 | DefaultResponse, KeycloakAdmin, KeycloakAdminToken, KeycloakRealmAdmin,
17 | KeycloakRealmAdminMethod, KeycloakServiceAccountAdminTokenRetriever, KeycloakTokenSupplier,
18 | };
19 |
--------------------------------------------------------------------------------
/src/resource/key.rs:
--------------------------------------------------------------------------------
1 | use super::*;
2 |
3 | impl<'a, TS: KeycloakTokenSupplier> KeycloakRealmAdmin<'a, TS> {
4 | // Key
5 | /// Parameters:
6 | ///
7 | /// - `realm`: realm name (not id!)
8 | ///
9 | /// Resource: `Key`
10 | ///
11 | /// `GET /admin/realms/{realm}/keys`
12 | ///
13 | /// Documentation:
14 | pub fn keys_get(
15 | &'a self,
16 | ) -> impl Future