chore(emqx_authn): update examples
This commit is contained in:
parent
b0bbe32667
commit
f5d0e8ce84
|
@ -1335,7 +1335,8 @@ authenticator_examples() ->
|
||||||
backend => <<"built_in_database">>,
|
backend => <<"built_in_database">>,
|
||||||
user_id_type => <<"username">>,
|
user_id_type => <<"username">>,
|
||||||
password_hash_algorithm => #{
|
password_hash_algorithm => #{
|
||||||
name => <<"sha256">>
|
name => <<"sha256">>,
|
||||||
|
salt_position => <<"suffix">>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -1387,8 +1388,10 @@ authenticator_examples() ->
|
||||||
password_hash_field => <<"password_hash">>,
|
password_hash_field => <<"password_hash">>,
|
||||||
salt_field => <<"salt">>,
|
salt_field => <<"salt">>,
|
||||||
is_superuser_field => <<"is_superuser">>,
|
is_superuser_field => <<"is_superuser">>,
|
||||||
password_hash_algorithm => <<"sha256">>,
|
password_hash_algorithm => #{
|
||||||
salt_position => <<"prefix">>
|
name => <<"sha256">>,
|
||||||
|
salt_position => <<"suffix">>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'password_based:redis' => #{
|
'password_based:redis' => #{
|
||||||
|
@ -1399,8 +1402,10 @@ authenticator_examples() ->
|
||||||
server => <<"127.0.0.1:6379">>,
|
server => <<"127.0.0.1:6379">>,
|
||||||
database => 0,
|
database => 0,
|
||||||
cmd => <<"HMGET ${username} password_hash salt">>,
|
cmd => <<"HMGET ${username} password_hash salt">>,
|
||||||
password_hash_algorithm => <<"sha256">>,
|
password_hash_algorithm => #{
|
||||||
salt_position => <<"prefix">>
|
name => <<"sha256">>,
|
||||||
|
salt_position => <<"suffix">>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.
|
}.
|
||||||
|
|
Loading…
Reference in New Issue