File tree Expand file tree Collapse file tree 6 files changed +12
-7
lines changed
Expand file tree Collapse file tree 6 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 11use crate :: auth:: strategy_impls:: AuthHeap ;
22use junobuild_auth:: state:: types:: config:: AuthenticationConfig ;
33use junobuild_auth:: state:: types:: interface:: SetAuthenticationConfig ;
4- use junobuild_auth:: state:: { get_config as get_state_config, set_config as set_store_config} ;
4+ use junobuild_auth:: state:: {
5+ get_config as get_state_config, set_authentication_config as set_store_config,
6+ } ;
57
68pub async fn set_config (
79 proposed_config : & SetAuthenticationConfig ,
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use junobuild_shared::types::core::DomainName;
66use junobuild_shared:: types:: state:: Version ;
77use url:: Url ;
88
9- pub fn assert_set_config (
9+ pub fn assert_set_authentication_config (
1010 proposed_config : & SetAuthenticationConfig ,
1111 current_config : & Option < AuthenticationConfig > ,
1212) -> Result < ( ) , String > {
Original file line number Diff line number Diff line change 1+ pub mod authentication;
Original file line number Diff line number Diff line change 1- mod assert ;
1+ mod asserts ;
22pub mod errors;
33mod heap;
44mod impls;
Original file line number Diff line number Diff line change 11use crate :: errors:: { JUNO_AUTH_ERROR_NOT_CONFIGURED , JUNO_AUTH_ERROR_OPENID_DISABLED } ;
2- use crate :: state:: assert :: assert_set_config ;
2+ use crate :: state:: asserts :: authentication :: assert_set_authentication_config ;
33use crate :: state:: heap:: get_config;
44use crate :: state:: heap:: insert_config;
55use crate :: state:: types:: config:: { AuthenticationConfig , OpenIdAuthProviders } ;
@@ -9,13 +9,13 @@ use crate::strategies::AuthHeapStrategy;
99use junobuild_shared:: ic:: api:: print;
1010use junobuild_shared:: random:: raw_rand;
1111
12- pub fn set_config (
12+ pub fn set_authentication_config (
1313 auth_heap : & impl AuthHeapStrategy ,
1414 proposed_config : & SetAuthenticationConfig ,
1515) -> Result < AuthenticationConfig , String > {
1616 let current_config = get_config ( auth_heap) ;
1717
18- assert_set_config ( proposed_config, & current_config) ?;
18+ assert_set_authentication_config ( proposed_config, & current_config) ?;
1919
2020 let config = AuthenticationConfig :: prepare ( & current_config, proposed_config) ;
2121
Original file line number Diff line number Diff line change @@ -2,7 +2,9 @@ use crate::auth::alternative_origins::update_alternative_origins;
22use crate :: auth:: strategy_impls:: AuthHeap ;
33use junobuild_auth:: state:: types:: config:: AuthenticationConfig ;
44use junobuild_auth:: state:: types:: interface:: SetAuthenticationConfig ;
5- use junobuild_auth:: state:: { get_config as get_state_config, set_config as set_store_config} ;
5+ use junobuild_auth:: state:: {
6+ get_config as get_state_config, set_authentication_config as set_store_config,
7+ } ;
68
79pub async fn set_config (
810 proposed_config : & SetAuthenticationConfig ,
You can’t perform that action at this time.
0 commit comments