Skip to content

Commit

Permalink
Return tags from http authz backend
Browse files Browse the repository at this point in the history
Related to #7864
  • Loading branch information
lukebakken committed Apr 24, 2023
1 parent 686fb9a commit 4f6e0e1
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ user_login_authentication(Username, AuthProps) ->

user_login_authorization(Username, AuthProps) ->
case user_login_authentication(Username, AuthProps) of
{ok, #auth_user{impl = Impl}} -> {ok, Impl};
Else -> Else
{ok, #auth_user{impl = Impl, tags = Tags}} when is_list(Tags), length(Tags) > 0 ->
{ok, Impl, Tags};
{ok, #auth_user{impl = Impl}} ->
{ok, Impl};
Else ->
Else
end.

check_vhost_access(#auth_user{username = Username, tags = Tags}, VHost, undefined) ->
Expand Down

0 comments on commit 4f6e0e1

Please sign in to comment.