Skip to content

Commit

Permalink
Merge pull request Cysharp#483 from Cysharp/feature/DeprecateAuthPackage
Browse files Browse the repository at this point in the history
Remove MagicOnion.Server.Authentication
  • Loading branch information
mayuki authored Dec 13, 2021
2 parents 6924e35 + 4d4b154 commit fafa887
Show file tree
Hide file tree
Showing 13 changed files with 2 additions and 401 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public async Task __ConnectAndSubscribeAsync(TReceiver receiver, CancellationTok
await firstMoveNextTask.ConfigureAwait(false);

// NOTE: C-core: If the execution reaches here, Connect method returns without any error (StatusCode = OK). but MessageVersion isn't provided from the server.
throw new RpcException(new Status(StatusCode.Internal, $"The message version of StreamingHub is not provided from the server."));
throw new RpcException(new Status(StatusCode.Internal, $"The request started successfully (StatusCode = OK), but the StreamingHub client has failed to negotiate with the server."));
}

this.subscription = StartSubscribe(syncContext, firstMoveNextTask);
Expand Down
2 changes: 1 addition & 1 deletion src/MagicOnion.Client/StreamingHubClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public async Task __ConnectAndSubscribeAsync(TReceiver receiver, CancellationTok
await firstMoveNextTask.ConfigureAwait(false);

// NOTE: C-core: If the execution reaches here, Connect method returns without any error (StatusCode = OK). but MessageVersion isn't provided from the server.
throw new RpcException(new Status(StatusCode.Internal, $"The request completed successfully (StatusCode = OK), but the StreamingHub client has failed to negotiate with the server."));
throw new RpcException(new Status(StatusCode.Internal, $"The request started successfully (StatusCode = OK), but the StreamingHub client has failed to negotiate with the server."));
}

this.subscription = StartSubscribe(syncContext, firstMoveNextTask);
Expand Down
19 changes: 0 additions & 19 deletions src/MagicOnion.Server.Authentication/AllowAnonymousAttribute.cs

This file was deleted.

64 changes: 0 additions & 64 deletions src/MagicOnion.Server.Authentication/AuthorizeAttribute.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit fafa887

Please sign in to comment.