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
Greenfield: Rename API key redirect params; switch to POST body #1898
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since it is a post (which I completely forgot), we should actually send these props in the body
7b683ea
to
c3a9d8f
Compare
tests do not pass |
c3a9d8f
to
a37b442
Compare
The integration test failures seem unrelated (rate providers), but I'm still unhappy about how the PostRedirect view turned out: I couldn't find a way to apply attributes conditionally and Razor wouldn't let me use the form |
This way it is clearer what to expect and it also make the parameteer easier to consume.
- Form URL as alternative to controller/action for external URLs - Making it look nice and add explanation for non-JS case
Tidies it up and adapts to the newly added ConfirmAPIKeys view.
Structures the information in title and description better.
By adding missing forgery token
3fe7515
to
0075c13
Compare
Now the PR can be reviewed. The main goal was to update two things regarding the callback the consumer app receives:
While working on this I also made some minor UI updates to the confirm view: The separate confirm view got introduced to prepare the addition of a third button for the "create a new api key" button use case, which I'd like to tackle in a separate PR. Also added a non-javascript version for the post redirect view: |
BTCPayServer/wwwroot/swagger/v1/swagger.template.authorization.json
Outdated
Show resolved
Hide resolved
….json Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
Greenfield: Rename API key redirect params; switch to POST body (btcpayserver#1898)
This way it is clearer what to expect and it also make the parameter easier to consume.