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

make tokenUrl optional as Oauth implicit grant flow doesn't use it #997

Merged
merged 1 commit into from Feb 8, 2021

Conversation

dkarwacki
Copy link
Contributor

No description provided.

@dkarwacki dkarwacki requested a review from adamw February 8, 2021 10:57
@dkarwacki dkarwacki linked an issue Feb 8, 2021 that may be closed by this pull request
val actualYamlNoIndent = noIndentation(actualYaml)
actualYamlNoIndent shouldBe expectedYaml
}
// test("should match the expected yaml when using coproduct types with discriminator") {
Copy link
Member

Choose a reason for hiding this comment

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

probably not what you wanted :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, thanks, corrected :)

@@ -202,7 +202,7 @@ object EndpointInput {
}
case class Oauth2[T](
authorizationUrl: String,
tokenUrl: String,
tokenUrl: Option[String] = None,
Copy link
Member

Choose a reason for hiding this comment

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

I think I'd remove the defaults here (from both fields). Defaults for fields which aren't at the end of argument lists aren't that nice to use

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected

@adamw adamw merged commit 0e3b58b into master Feb 8, 2021
@mergify mergify bot deleted the bug/737 branch February 8, 2021 13:54
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.

[BUG] Token URL in OAuthFlow should be optional
2 participants