Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ default-members = [
"sdk/auth-application-credential",
"sdk/auth-multifactor",
"sdk/auth-oidcaccesstoken",
"sdk/auth-oidcclientcredentials",
"sdk/auth-password",
"sdk/auth-receipt",
"sdk/auth-totp",
Expand Down
1 change: 1 addition & 0 deletions openstack_sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ openstack-sdk-auth-core.workspace = true
openstack-sdk-auth-federation = { version = "0.22", path = "../sdk/auth-federation/", optional = true }
openstack-sdk-auth-jwt = { version = "0.22", path = "../sdk/auth-jwt/", optional = true }
openstack-sdk-auth-oidcaccesstoken = { version = "0.22", path = "../sdk/auth-oidcaccesstoken/" }
openstack-sdk-auth-oidcclientcredentials = { version = "0.1", path = "../sdk/auth-oidcclientcredentials/" }
openstack-sdk-auth-passkey = { version = "0.22", path = "../sdk/auth-passkey/", optional = true }
openstack-sdk-auth-password = { version = "0.22", path = "../sdk/auth-password/" }
openstack-sdk-auth-receipt = { version = "0.22", path = "../sdk/auth-receipt/" }
Expand Down
4 changes: 4 additions & 0 deletions openstack_sdk/src/auth/authtoken.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ pub enum AuthType {
V3ApplicationCredential,
/// OIDC Access token
V3OidcAccessToken,
/// OIDC Client Credentials
V3OidcClientCredentials,
/// v3 Password
V3Password,
/// v3 Token
Expand Down Expand Up @@ -64,6 +66,7 @@ impl FromStr for AuthType {
}
"v3password" | "password" => Ok(Self::V3Password),
"v3oidcaccesstoken" | "accesstoken" => Ok(Self::V3OidcAccessToken),
"v3oidcclientcredentials" | "clientcredentials" => Ok(Self::V3OidcClientCredentials),
"v3token" | "token" => Ok(Self::V3Token),
"v3totp" => Ok(Self::V3Totp),
"v3multifactor" => Ok(Self::V3Multifactor),
Expand Down Expand Up @@ -97,6 +100,7 @@ impl AuthType {
Self::V3ApplicationCredential => "v3applicationcredential",
Self::V3Password => "v3password",
Self::V3OidcAccessToken => "v3oidcaccesstoken",
Self::V3OidcClientCredentials => "v3oidcclientcredentials",
Self::V3Token => "v3token",
Self::V3Multifactor => "v3multifactor",
Self::V3Totp => "v3totp",
Expand Down
3 changes: 3 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ name = "openstack-sdk-auth-multifactor"
version_group = "sdk-auth"
[[package]]
name = "openstack-sdk-auth-oidcaccesstoken"

[[package]]
name = "openstack-sdk-auth-oidcclientcredentials"
version_group = "sdk-auth"
[[package]]
name = "openstack-sdk-auth-passkey"
Expand Down
14 changes: 14 additions & 0 deletions sdk/auth-oidcclientcredentials/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.1.0] - 2025-MM-DD

### Added

- Initial OIDC client credentials grant authentication plugin
29 changes: 29 additions & 0 deletions sdk/auth-oidcclientcredentials/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[package]
name = "openstack-sdk-auth-oidcclientcredentials"
description = "OpenStack SDK auth plugin for OIDC client credentials flow"
version = "0.1.0"
license.workspace = true
edition.workspace = true
authors.workspace = true
rust-version.workspace = true
homepage.workspace = true
repository.workspace = true

[dependencies]
async-trait.workspace = true
inventory.workspace = true
openstack-sdk-auth-core.workspace = true
secrecy.workspace = true
serde.workspace = true
serde_json.workspace = true
reqwest = { workspace = true, features = ["form"] }
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true
url.workspace = true

[lints]
workspace = true

[dev-dependencies]
httpmock.workspace = true
Loading
Loading