@@ -81,26 +81,55 @@ test_oauth_providers_attributes(_) ->
8181 } = sort_settings (rabbit_oauth2_schema :translate_oauth_providers (Conf )).
8282
8383test_resource_servers_attributes (_ ) ->
84+ <<<<<<< HEAD
8485 Conf = [{[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," id" ]," rabbitmq1xxx" },
8586 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ]," somescope." },
8687 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ]," roles" },
8788 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ]," userid" },
8889 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ]," groupid" }
8990 ],
9091 #{<<" rabbitmq1xxx" >> := [{additional_scopes_key , <<" roles" >>},
92+ =======
93+ Conf = [
94+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," id" ],
95+ " rabbitmq1xxx" },
96+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ],
97+ " somescope." },
98+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ],
99+ " roles" },
100+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ],
101+ " userid" },
102+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ],
103+ " groupid" }
104+ ],
105+ #{<<" rabbitmq1xxx" >> := [{extra_scopes_source , <<" roles" >>},
106+ >>>>>>> 0 d51ee9ec0 (rabbitmq - auth - backend - oauth2 : correctly map additional_scopes_key )
91107 {id , <<" rabbitmq1xxx" >>},
92108 {preferred_username_claims , [<<" userid" >>, <<" groupid" >>]},
93109 {scope_prefix , <<" somescope." >>}
94110 ]
95111 } = sort_settings (rabbit_oauth2_schema :translate_resource_servers (Conf )),
96112
97113 Conf2 = [
114+ <<<<<<< HEAD
98115 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ]," somescope." },
99116 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ]," roles" },
100117 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ]," userid" },
101118 {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ]," groupid" }
102119 ],
103120 #{<<" rabbitmq1" >> := [{additional_scopes_key , <<" roles" >>},
121+ =======
122+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," scope_prefix" ],
123+ " somescope." },
124+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," additional_scopes_key" ],
125+ " roles" },
126+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 1" ],
127+ " userid" },
128+ {[" auth_oauth2" ," resource_servers" ," rabbitmq1" ," preferred_username_claims" ," 2" ],
129+ " groupid" }
130+ ],
131+ #{<<" rabbitmq1" >> := [{extra_scopes_source , <<" roles" >>},
132+ >>>>>>> 0 d51ee9ec0 (rabbitmq - auth - backend - oauth2 : correctly map additional_scopes_key )
104133 {id , <<" rabbitmq1" >>},
105134 {preferred_username_claims , [<<" userid" >>, <<" groupid" >>]},
106135 {scope_prefix , <<" somescope." >>}
0 commit comments