Skip to content

Commit 719b556

Browse files
Cosmetics
1 parent 301b79c commit 719b556

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

deps/rabbitmq_auth_backend_oauth2/src/rabbit_auth_backend_oauth2.erl

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,11 @@
3838
-endif.
3939

4040
%%
41-
%% App environment
41+
%% Types
4242
%%
4343

44-
45-
%% a term defined for Rich Authorization Request tokens to identify a RabbitMQ permission
46-
%% verify server_server_id aud field is on the aud field
47-
%% a term used by the IdentityServer community
48-
%% scope aliases map "role names" to a set of scopes
49-
44+
-type ok_extracted_auth_user() :: {ok, rabbit_types:auth_user()}.
45+
-type auth_user_extraction_fun() :: fun((decoded_jwt_token()) -> any()).
5046

5147
%%
5248
%% API
@@ -177,9 +173,6 @@ authenticate(_, AuthProps0) ->
177173
end
178174
end.
179175

180-
-type ok_extracted_auth_user() :: {ok, rabbit_types:auth_user()}.
181-
-type auth_user_extraction_fun() :: fun((decoded_jwt_token()) -> any()).
182-
183176
-spec with_decoded_token(Token, Fun) -> Result
184177
when Token :: decoded_jwt_token(),
185178
Fun :: auth_user_extraction_fun(),

0 commit comments

Comments
 (0)