-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEnferno.StormApiClient.nuspec
More file actions
162 lines (110 loc) · 5.39 KB
/
Enferno.StormApiClient.nuspec
File metadata and controls
162 lines (110 loc) · 5.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0"?>
<package>
<metadata>
<id>Enferno.StormApiClient</id>
<version>2.5.5</version>
<title>Enferno Storm Api Client</title>
<authors>Storm Commerce AB</authors>
<owners>Storm Commerce AB</owners>
<projectUrl>https://github.com/StormCommerce/Storm.API-client-dotnet/</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Enferno Storm Commerce API Client library.</description>
<releaseNotes>
Please see release notes for 2.0.0 for details if you are upgrading from <= v1.8.x.
Note that the 1.8.x branch will no longer be updated.
Also note the breaking change in Enferno.Public 2.3.0.
Make sure to use our new addresses:
Stage/Lab: https://api.lab.storm.io/api/1.1
Production: https://api.storm.io/api/1.1
Breaking changes in 2.5.0
## What's new?
Fixes in 2.5.5
Fixed a bug where pricelists where not sent correctly in ExportHelper.
Fixes in 2.5.4
Updated to latest Model
* Added new Endpoints
- CloseBasketForPostPurchaseUpsell
- InsertItemsPostPurchase
- IsPostPurchasePossbile
- ListFlagGroups
- ListParametricGroups
- InsertCompanyPaymentMethod2
- GetCompanyPaymentMethod
* Added new Entities
- CompanyPaymentMethod
- FlagGroupList
- ParametricGroupList
* Added field to Entity
- CommodityCode in Product
- RelationsMetadata in ProductRelations
- RelationsMetadata in VariantRelations
- IsGlobal in CategoryParametric
- IsGlobal in ParametricInfo
Using Oauth2 instead of certificates.
What's new?
To use OAUTH2 you need 4 settings.
* Client Id
* Client Secret
* Scope
* Application Id.
- Client Id and Secret is created in Storm Admin. At https://admin.storm.io/admin/settings/user under the OAUTH tab.
- Scope tells us if you are trying to access lab/qa/production data. (This will not point the request to a specific environment, it will only say that you gives the client access to the specified environment.)
Existing scopes: lab / qa / production
- Application Id is the application that you want to use.
To read these settings we use the Interface IOAuth2CredentialsProvider registed with DI.
You can create your own if you want, or you can use our OAuth2AppSettingsCredentialsProvider.
Our OAuth2AppSettingsCredentialsProvider will read the settings from the appsettings in web.config.
The AccessClient will for each request check IOAuth2CredentialsProvider.ApplicationId to see what application it should use.
You can override this by using the applicationId parameter when creating an AccessClient.
So with help of these(parameter in AccessClient,your own IOAuth2CredentialsProvider) you can use multiple applications.
*** If you are using Enferno.Web.StormUtils with multiple applications you must create your own IOAuth2CredentialsProvider. ***
** Checklist of changes that may have to be updated after an upgrade.
- Register IOAuth2CredentialsProvider to DI
Ex: in web.config
<register type="IOAuth2CredentialsProvider" mapTo="OAuth2AppSettingsCredentialsProvider">
<lifetime type="singleton" />
</register>
Ex: via code:
IoC.RegisterType<IOAuth2CredentialsProvider, OAuth2AppSettingsCredentialsProvider="">
();
- If you are using OAuth2AppSettingsCredentialsProvider add these appsettings to your web.config
appSettings:
API.OAuth2.ClientId : clientId guid.
API.OAuth2.ClientSecret : clientsecret guid.
API.OAuth2.Scope : lab/qa/production
API.ApplicationId : applicationId you want to use
- Update Endpoints in web.config
attributes under client.endpoint:
remove: behaviorConfiguration
change: bindingConfiguration from SOAP -> Auth2-SOAP
add a new binding under bindings.wsHttpBinding with name "Auth2-SOAP".
<binding name="Auth2-SOAP" maxReceivedMessageSize="10000000" >
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="None" />
</security>
</binding>
Remove SOAP under bindings.wsHttpBinding.
Remove endpointBehaviors: CertificateBehavior.
- If you are using Enferno.Web.StormUtils with multiple applications you must create your own IOAuth2CredentialsProvider.
Regards,
The Storm API Team
</releaseNotes>
<copyright>Copyright 2021</copyright>
<tags>Enferno Storm API Client Commerce</tags>
<dependencies>
<group targetFramework=".NETFramework4.5">
<dependency id="Enferno.Public" version="2.3.1" />
</group>
</dependencies>
</metadata>
<files>
<file src="StormApiClient\bin\Debug\Enferno.StormApiClient.dll" target="lib/net45" />
<file src="StormApiClient\bin\Debug\Enferno.StormApiClient.pdb" target="lib/net45" />
<file src="Enferno.Web.StormUtils\bin\Debug\Enferno.Web.StormUtils.dll" target="lib/net45" />
<file src="Enferno.Web.StormUtils\bin\Debug\Enferno.Web.StormUtils.pdb" target="lib/net45" />
<file src="StormApiClient\Web.config.install.xdt" target="content/net45" />
<file src="StormApiClient\**\*.cs" target="src\Enferno.StormApiClient" />
<file src="Enferno.Web.StormUtils\**\*.cs" target="src\Enferno.Web.StormUtils" />
</files>
</package>