Skip to content

Commit 242e07b

Browse files
authored
Merge pull request #19 from oxidecomputer/update-client-id-param
Allow client_id to be read as string param
2 parents 0f68556 + 5ece951 commit 242e07b

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "oidcx"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
edition = "2024"
55

66
[dependencies]

src/settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ pub struct SettingsOxide {
7070

7171
#[derive(Debug, Deserialize)]
7272
pub struct SettingsGitHubApp {
73-
pub client_id: String,
73+
pub client_id: StringParam,
7474
/// PEM-encoded GitHub App private key. May be provided inline or, more
7575
/// commonly, as a `{ path = "..." }` reference to a key file on the
7676
/// parameters volume.

src/token/github.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl GitHubTokens {
129129
Ok(GitHubTokens {
130130
state: Some(Arc::new(State {
131131
client: Client::new(),
132-
client_id: github.client_id.clone(),
132+
client_id: github.client_id.resolve(base)?.expose_secret().to_string(),
133133
private_key: EncodingKey::from_rsa_pem(private_key.expose_secret().as_bytes())
134134
.map_err(GitHubTokenError::LoadPrivateKey)?,
135135
})),

0 commit comments

Comments
 (0)