Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support FormPostHTMLTemplate config for fosite #647

Conversation

antonywang-eth
Copy link
Contributor

Support FormPostHTMLTemplate configuration during fosite init phase

Related Issue or Design Document

#646

Checklist

  • I have read the contributing guidelines
    and signed the CLA.
  • I have referenced an issue containing the design document if my change
    introduces a new feature.
  • I have read the security policy.
  • I confirm that this pull request does not address a security
    vulnerability. If this pull request addresses a security vulnerability, I
    confirm that I got green light (please contact
    security@ory.sh) from the maintainers to push
    the changes.
  • I have added tests that prove my fix is effective or that my feature
    works.
  • I have added necessary documentation within the code base (if
    appropriate).

Further comments

@antonywang-eth antonywang-eth changed the title [feature] Support FormPostHTMLTemplate config for fosite feat: Support FormPostHTMLTemplate config for fosite Jan 28, 2022
@aeneasr

This comment has been minimized.

Copy link
Member

@aeneasr aeneasr left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! From the code I see that the new config value is not being used anywhere? We usually do not add code to Fosite that is not used by Fosite.

@@ -74,6 +74,7 @@ func Compose(config *Config, storage interface{}, strategy interface{}, hasher f
ClientAuthenticationStrategy: config.GetClientAuthenticationStrategy(),
ResponseModeHandlerExtension: config.ResponseModeHandlerExtension,
MessageCatalog: config.MessageCatalog,
FormPostHTMLTemplate: config.FormPostHTMLTemplate,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is being used here?

FormPostHTMLTemplate *template.Template

Copy link
Member

Choose a reason for hiding this comment

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

You're right, I thought that was also an addition, but it's not. Thank you, LGTM!

@aeneasr aeneasr merged commit 570ce3f into ory:master Feb 3, 2022
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.

None yet

3 participants