Skip to content

Commit c029415

Browse files
committed
Fixed routing issue with unlinking oauth accounts.
1 parent 6188500 commit c029415

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Exceptionless.Api/Controllers/AuthController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public Task<IActionResult> LiveAsync([FromBody] JObject value) {
335335
[ApiExplorerSettings(IgnoreApi = true)]
336336
[HttpPost("unlink/{providerName:minlength(1)}")]
337337
[SwaggerResponse(StatusCodes.Status200OK, Type = typeof(TokenResult))]
338-
public async Task<IActionResult> RemoveExternalLoginAsync(string providerName, [FromQuery] string providerUserId) {
338+
public async Task<IActionResult> RemoveExternalLoginAsync(string providerName, [FromBody] string providerUserId) {
339339
using (_logger.BeginScope(new ExceptionlessState().Tag("External Login").Tag(providerName).Identity(CurrentUser.EmailAddress).Property("User", CurrentUser).Property("Provider User Id", providerUserId).SetHttpContext(HttpContext))) {
340340
if (String.IsNullOrWhiteSpace(providerName) || String.IsNullOrWhiteSpace(providerUserId)) {
341341
_logger.LogError("Remove external login failed for {EmailAddress}: Invalid Provider Name or Provider User Id.", CurrentUser.EmailAddress);

src/Exceptionless.Web/appsettings.Production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ExceptionlessServerUrl: https://collector.exceptionless.io
2626
InternalProjectId: 50ca6b2423d6c8493020b823
2727

2828
FacebookAppId: 395178683904310
29-
GitHubAppId: 7ef1dd5bfbc4ccf7f5e
29+
GitHubAppId: 7ef1dd5bfbc4ccf7f5ef
3030
GoogleAppId: 809763155066-enkkdmt4ierc33q9cft9nf5d5c02h30q.apps.googleusercontent.com
3131
MicrosoftAppId: 000000004C137E8B
3232
SlackAppId: 34500115540.177239122322

0 commit comments

Comments
 (0)