fix(saml_sso): donot load IDP metadata when disabling saml

This commit is contained in:
JimMoen 2023-09-27 18:46:24 +08:00
parent af9e87c025
commit c9194cd6b2
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@ desc(_) ->
%% APIs
%%------------------------------------------------------------------------------
create(#{enable := false} = _Config) ->
{ok, undefined};
create(#{sp_sign_request := true} = Config) ->
try
do_create(ensure_cert_and_key(Config))