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

Improved OAuth support #1542

Merged
merged 1 commit into from
Mar 28, 2019
Merged

Improved OAuth support #1542

merged 1 commit into from
Mar 28, 2019

Conversation

ob-stripe
Copy link
Contributor

@ob-stripe ob-stripe commented Feb 25, 2019

r? @remi-stripe

Improved support for OAuth:

  • new OAuthTokenService.AuthorizeUrl() method for creating the authorize URLs
  • added XML comments for every OAuth parameter and attribute
  • removed Error and ErrorDescription on OAuthToken and OAuthDeauthorize. These were useless as when the API returns an error, a StripeError is deserialized and attached to the StripeException.
  • renamed OAuthTokenDeauthorizeOptions to OAuthDeauthorizeOptions (not a breaking change, since OAuthTokenDeauthorizeOptions was added earlier in the integration branch)

Fixes #1543.

@ob-stripe ob-stripe mentioned this pull request Feb 25, 2019
52 tasks
Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

Left some comments, though up to you if we should change things.

I personally would prefer that we punt on OAuthAuthorizeUrlStripeUserOptions.cs. I really don't like it though I know i follows our docs. So up to you here.

@ob-stripe
Copy link
Contributor Author

@remi-stripe I've marked AccessToken and StripePublishableKey as deprecated, and added the missing Express properties mentioned in #1543. ptal

Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

Left some comments, but I know we disagree so leaving to you to decide/merge!

@remi-stripe remi-stripe assigned ob-stripe and unassigned remi-stripe Mar 14, 2019
@ob-stripe ob-stripe force-pushed the integration-v23 branch 2 times, most recently from 2adef2b to 28ae697 Compare March 28, 2019 06:32
@ob-stripe
Copy link
Contributor Author

ptal @remi-stripe

@ob-stripe ob-stripe assigned remi-stripe and unassigned ob-stripe Mar 28, 2019
Copy link
Contributor

@remi-stripe remi-stripe left a comment

Choose a reason for hiding this comment

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

I did not re-review thoroughly since you mostly addressed my feedback! thanks for all the work on that one!

@ob-stripe ob-stripe merged commit f297958 into integration-v23 Mar 28, 2019
@ob-stripe ob-stripe deleted the ob-better-oauth branch March 28, 2019 15:41
@ob-stripe ob-stripe assigned ob-stripe and unassigned remi-stripe Mar 28, 2019
ob-stripe added a commit that referenced this pull request Apr 16, 2019
ob-stripe added a commit that referenced this pull request Apr 20, 2019
ob-stripe added a commit that referenced this pull request Apr 29, 2019
ob-stripe added a commit that referenced this pull request Apr 30, 2019
ob-stripe added a commit that referenced this pull request May 5, 2019
ob-stripe added a commit that referenced this pull request May 5, 2019
ob-stripe added a commit that referenced this pull request May 7, 2019
ob-stripe added a commit that referenced this pull request May 13, 2019
ob-stripe added a commit that referenced this pull request May 21, 2019
ob-stripe added a commit that referenced this pull request May 26, 2019
ob-stripe added a commit that referenced this pull request Jun 6, 2019
ob-stripe added a commit that referenced this pull request Jun 7, 2019
* Better serialization

* Remove unnecessary uses of Mapper

* Standardize signature of OAuthTokenService.Deauthorize

* New `FromJson` method

* Modernize StripeConfiguration

* Simplify Service request methods

* Replace Parameter custom class with KeyValuePair<string, string>

* Rewrite expandable field handling

* Move base URLs out of resource services where possible

* Refactor Client class

* Minor fixes

* Remove `Mapper` class

* Simplify handling of Expand and ExtraParams

* Minor improvements in EventUtility

* More request encoding refactoring

* Introduce new Request class to represent requests to Stripe's API

* Revamp HTTP client requestor

* Fixes to FileService and OAuthTokenService

* Remove BaseOptionsExtensions

* Remove ServiceExtensions, allow per-service clients

* Add support for telemetry

* Make `parent` on `OrderItem` expandable

* Automatic request retries

* Add missing attributes to StripeError

* Remove parameters that are internal only today on PaymentIntent

* Various minor cleanups

* API key validation

* Check validity of JSON in OK responses

* Enforce that all properties have a Json attribute

* Improved OAuth support (#1542)

* Rename DuplicateChargeDocumentation to be more consistent with FileId (#1563)

* AnyOf<> generic class to handle polymorphic parameters (#1495)

* Add support for file_link_data (#1598)

* Add support for passing application information (#1596)

* Rename StripeConnectAcconutId to StripeAccount (#1603)

* Update README (#1602)

* Add wholesome test to check JSON names (#1609)

* Remove System.Collections.Immutable dependency (#1615)

* Raise ArgumentException on null or empty IDs (#1616)

* Move default values for SystemNetHttpClient (#1623)

* Remove StripeConfiguration.EnableTelemetry flag (#1622)

* Refactor StripeClient setup in tests (#1631)

* Set base URLs in StripeClient instead of StripeConfiguration (#1632)

* Add support for setting API key and client ID in StripeClient (#1633)

* Use StripeClient instance in tests (#1634)

* Add support for setting MaxNetworkRetries and AppInfo in SystemNetHttpClient (#1635)

* Make base URLs in StripeClient readonly (#1640)

* Make client in services readonly (#1639)

* Add AddRangeExpand method to BaseOptions (#1643)

* Add options classes for Get/GetAsync methods (#1644)

* Deprecate Expand properties on services (#1646)

* Use constants instead of static strings (#1647)

* Update README.md (#1648)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants