Skip to content

AuthenticationMethodChooser 添加无参数构造函数#85

Open
ZF-Follower wants to merge 1 commit into
urielha:masterfrom
ZF-Follower:master
Open

AuthenticationMethodChooser 添加无参数构造函数#85
ZF-Follower wants to merge 1 commit into
urielha:masterfrom
ZF-Follower:master

Conversation

@ZF-Follower
Copy link
Copy Markdown

xml配置出错 无法创建授权方式

private readonly IExternalEventWriter _eventWriter;
private IAuthenticator _innerMethod;

public AuthenticationMethodChooser()
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would break the AWS authentication method.

I think a larger refactor may be necessary here, like

  1. Refactoring the Authenticate method to accept an EventWriter; or
  2. Refactoring the authentication method "chooser" types to act as factories to create the appropriate authenticator when ActivateOptions is called on the appender.

I think (1) is probably sufficient?

Copy link
Copy Markdown
Owner

@urielha urielha Dec 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! really appreciate :)

Do you think you can implement the first method?
And regarding AWS authentication - does it break it for sure? I think I want to verify this before pushing this commit.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll work on that this evening.

@mechelewskim
Copy link
Copy Markdown

It would be great to have the fix merged if it resolves #91.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants