fix(saml): saml login reply role `viewer` as default
This commit is contained in:
parent
cc3e4e4dc5
commit
80a6c1150d
|
@ -96,8 +96,8 @@ sp_saml_callback(post, Req) ->
|
|||
{404, #{code => ?BACKEND_NOT_FOUND, message => <<"Backend not found">>}};
|
||||
State ->
|
||||
case (provider(saml)):callback(Req, State) of
|
||||
{ok, Token} ->
|
||||
{200, emqx_dashboard_sso_api:login_reply(Token)};
|
||||
{ok, Role, Token} ->
|
||||
{200, emqx_dashboard_sso_api:login_reply(Role, Token)};
|
||||
{error, Reason} ->
|
||||
?SLOG(info, #{
|
||||
msg => "dashboard_saml_sso_login_failed",
|
||||
|
|
Loading…
Reference in New Issue