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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
jobs:
rust:
name: Rust
uses: RustForWeb/.github/.github/workflows/rust.yml@c18f3b7315df398b6af8d03f823e31daeda63114
uses: RustForWeb/.github/.github/workflows/rust.yml@dc2442c27ef9f920a1a889ec94e615b419b491b2 # v1.0.1
with:
enable-test: false
target: wasm32-unknown-unknown
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ permissions:
jobs:
labels:
name: Labels
uses: RustForWeb/.github/.github/workflows/labels.yml@c18f3b7315df398b6af8d03f823e31daeda63114
uses: RustForWeb/.github/.github/workflows/labels.yml@dc2442c27ef9f920a1a889ec94e615b419b491b2 # v1.0.1
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ permissions:
jobs:
publish:
name: Publish
uses: RustForWeb/.github/.github/workflows/publish.yml@c18f3b7315df398b6af8d03f823e31daeda63114
uses: RustForWeb/.github/.github/workflows/publish.yml@dc2442c27ef9f920a1a889ec94e615b419b491b2 # v1.0.1
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ permissions:
jobs:
release:
name: Release
uses: RustForWeb/.github/.github/workflows/release.yml@c18f3b7315df398b6af8d03f823e31daeda63114
uses: RustForWeb/.github/.github/workflows/release.yml@dc2442c27ef9f920a1a889ec94e615b419b491b2 # v1.0.1
with:
bump: ${{ inputs.bump }}
2 changes: 1 addition & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ concurrency:
jobs:
book:
name: Book
uses: RustForWeb/.github/.github/workflows/book.yml@c18f3b7315df398b6af8d03f823e31daeda63114
uses: RustForWeb/.github/.github/workflows/book.yml@dc2442c27ef9f920a1a889ec94e615b419b491b2 # v1.0.1
with:
combine: false
1 change: 1 addition & 0 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ all-features = true
ignore = [
{ id = "RUSTSEC-2023-0071", reason = "No safe upgrade available for `rsa`." },
{ id = "RUSTSEC-2024-0436", reason = "No maintained version available for `paste`." },
{ id = "RUSTSEC-2026-0173", reason = "No maintained version available for `proc-macro-error2`." },
]
yanked = "deny"

Expand Down
11 changes: 10 additions & 1 deletion packages/methods/shield-oauth/src/provider.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use bon::Builder;
use oauth2::{
AuthUrl, Client, ClientId, ClientSecret, EndpointMaybeSet, EndpointNotSet, IntrospectionUrl,
RedirectUrl, RevocationUrl, StandardRevocableToken, TokenUrl,
Expand Down Expand Up @@ -37,11 +38,18 @@ pub enum OauthProviderPkceCodeChallenge {
S256,
}

#[derive(Clone, Debug)]
#[expect(clippy::duplicated_attributes)]
#[derive(Builder, Clone, Debug)]
#[builder(
on(String, into),
on(SecretString, into),
state_mod(vis = "pub(crate)")
)]
pub struct OauthProvider {
pub id: String,
pub name: String,
pub slug: Option<String>,
#[builder(default = OauthProviderVisibility::Public)]
pub visibility: OauthProviderVisibility,
pub client_id: String,
pub client_secret: Option<SecretString>,
Expand All @@ -55,6 +63,7 @@ pub struct OauthProvider {
pub introspection_url_params: Option<String>,
pub revocation_url: Option<String>,
pub revocation_url_params: Option<String>,
#[builder(default = OauthProviderPkceCodeChallenge::S256)]
pub pkce_code_challenge: OauthProviderPkceCodeChallenge,
pub icon_url: Option<String>,
}
Expand Down