11use crate :: auth:: strategy_impls:: AuthHeap ;
22use crate :: certification:: strategy_impls:: AuthCertificate ;
3+ use junobuild_auth:: delegation;
34use junobuild_auth:: delegation:: types:: {
45 GetDelegationError , GetDelegationResult , OpenIdGetDelegationArgs , OpenIdPrepareDelegationArgs ,
56 PrepareDelegationError , PreparedDelegation ,
67} ;
7- use junobuild_auth:: openid:: delegation:: types:: interface:: OpenIdCredential ;
8- use junobuild_auth:: openid:: delegation:: types:: provider:: OpenIdDelegationProvider ;
8+ use junobuild_auth:: openid:: credentials;
9+ use junobuild_auth:: openid:: credentials:: delegation:: types:: interface:: OpenIdCredential ;
10+ use junobuild_auth:: openid:: credentials:: delegation:: types:: provider:: OpenIdDelegationProvider ;
911use junobuild_auth:: state:: types:: config:: OpenIdAuthProviders ;
10- use junobuild_auth:: { delegation, openid} ;
1112
1213pub type OpenIdPrepareDelegationResult = Result <
1314 (
@@ -23,7 +24,7 @@ pub async fn openid_prepare_delegation(
2324 providers : & OpenIdAuthProviders ,
2425) -> OpenIdPrepareDelegationResult {
2526 let ( credential, provider) =
26- match openid :: delegation:: verify_openid_credentials_with_jwks_renewal (
27+ match credentials :: delegation:: verify_openid_credentials_with_jwks_renewal (
2728 & args. jwt , & args. salt , providers, & AuthHeap ,
2829 )
2930 . await
@@ -48,7 +49,7 @@ pub fn openid_get_delegation(
4849 providers : & OpenIdAuthProviders ,
4950) -> GetDelegationResult {
5051 let ( credential, provider) =
51- match openid :: delegation:: verify_openid_credentials_with_cached_jwks (
52+ match credentials :: delegation:: verify_openid_credentials_with_cached_jwks (
5253 & args. jwt , & args. salt , providers, & AuthHeap ,
5354 ) {
5455 Ok ( value) => value,
0 commit comments