Skip to content

Commit 3f24237

Browse files
Use correct AuthenticationProperties for OAuth2 On Authentication Scheme Changed
Signed-off-by: Jaliya Udagedara <jaliya.udagedara@hotmail.com>
1 parent cba235f commit 3f24237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dashboard/Synapse.Dashboard/Features/Workflows/WorkflowEditor/AuthenticationEditor.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
{
167167
AuthenticationScheme.Basic => new BasicAuthenticationProperties(),
168168
AuthenticationScheme.Bearer => new BearerAuthenticationProperties(),
169-
AuthenticationScheme.OAuth2 => new BearerAuthenticationProperties(),
169+
AuthenticationScheme.OAuth2 => new OAuth2AuthenticationProperties(),
170170
_ => throw new NotSupportedException($"The specified {nameof(AuthenticationScheme)} '{a.Scheme}' is not supported")
171171
};
172172
});

0 commit comments

Comments
 (0)