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

Accounts creation on empty request #96

Closed
thibaultcha opened this issue Mar 25, 2015 · 3 comments
Closed

Accounts creation on empty request #96

thibaultcha opened this issue Mar 25, 2015 · 3 comments

Comments

@thibaultcha
Copy link
Member

curl -i -X POST -d "" http://localhost:8001/accounts/
HTTP/1.1 201 Created
Date: Wed, 25 Mar 2015 23:10:15 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Server: kong/0.1.0beta-1

{"created_at":1427325015000,"id":"39edc72b-a67e-4f34-cf84-92b137b79311"}

We should probably have a least one parameter to be able to create an account?

@subnetmarco
Copy link
Member

Given the recent updates, a Consumer (instead of Account) now has the following properties:

  • custom_id
  • username

At least one should be sent. Either the custom_id (if the user already has a database he wants to map the consumer to), or username if he relies on Kong as the primary database, which are the only two possible use-cases.

@thibaultcha
Copy link
Member Author

Put that in #100 if we have time

This was referenced Mar 27, 2015
@thibaultcha
Copy link
Member Author

Closed by #102. Now anaccount (renamed consumer can only be created if given a username or a custom_id

bungle added a commit that referenced this issue Dec 7, 2020
### Summary

#### [2.5.0]

> Released on: 2020/11/18

##### Added

- `get()` callback functions are now optional. Without a callback, `get()` now
  still performs on-cpu L1/L2 lookups (no yielding). This allows implementing
  new cache lookup patterns guaranteed to be on-cpu for a more constant,
  smoother latency tail end (e.g. values are refreshed in background timers with
  `set()`).
  Thanks Hamish Forbes and Corina Purcarea for proposing this feature and
  participating in its development!
  [#96](thibaultcha/lua-resty-mlcache#96)

##### Fixed

- Improve `update()` robustness to worker crashes. Now, the library behind
  `cache:update()` is much more robust to re-spawned workers when initialized in
  the `init_by_lua` phase.
  [#97](thibaultcha/lua-resty-mlcache#97)
- Document the `peek()` method `stale` argument which was not mentioned, as well
  as the possibility of negative TTL return values for expired items.
bungle added a commit that referenced this issue Dec 8, 2020
### Summary

#### [2.5.0]

> Released on: 2020/11/18

##### Added

- `get()` callback functions are now optional. Without a callback, `get()` now
  still performs on-cpu L1/L2 lookups (no yielding). This allows implementing
  new cache lookup patterns guaranteed to be on-cpu for a more constant,
  smoother latency tail end (e.g. values are refreshed in background timers with
  `set()`).
  Thanks Hamish Forbes and Corina Purcarea for proposing this feature and
  participating in its development!
  [#96](thibaultcha/lua-resty-mlcache#96)

##### Fixed

- Improve `update()` robustness to worker crashes. Now, the library behind
  `cache:update()` is much more robust to re-spawned workers when initialized in
  the `init_by_lua` phase.
  [#97](thibaultcha/lua-resty-mlcache#97)
- Document the `peek()` method `stale` argument which was not mentioned, as well
  as the possibility of negative TTL return values for expired items.
gszr pushed a commit that referenced this issue Dec 8, 2020
### Summary

#### [2.5.0]

> Released on: 2020/11/18

##### Added

- `get()` callback functions are now optional. Without a callback, `get()` now
  still performs on-cpu L1/L2 lookups (no yielding). This allows implementing
  new cache lookup patterns guaranteed to be on-cpu for a more constant,
  smoother latency tail end (e.g. values are refreshed in background timers with
  `set()`).
  Thanks Hamish Forbes and Corina Purcarea for proposing this feature and
  participating in its development!
  [#96](thibaultcha/lua-resty-mlcache#96)

##### Fixed

- Improve `update()` robustness to worker crashes. Now, the library behind
  `cache:update()` is much more robust to re-spawned workers when initialized in
  the `init_by_lua` phase.
  [#97](thibaultcha/lua-resty-mlcache#97)
- Document the `peek()` method `stale` argument which was not mentioned, as well
  as the possibility of negative TTL return values for expired items.
fffonion added a commit that referenced this issue Dec 6, 2022
<a name="0.10.1"></a>
## [0.10.1] - 2022-12-06
### bug fixes
- **zerossl:** concatenate response body as string instead of table ([#98](fffonion/lua-resty-acme#98)) [986b1db](fffonion/lua-resty-acme@986b1db)


<a name="0.10.0"></a>
## [0.10.0] - 2022-11-18
### features
- **autossl:** expose function to get cert from LRU cache ([#96](fffonion/lua-resty-acme#96)) [6135d0e](fffonion/lua-resty-acme@6135d0e)
- **autossl:** better cache handling in blocking mode [40f5d2d](fffonion/lua-resty-acme@40f5d2d)
- **autossl:** fix behavior change in non blocking mode [aa484cc](fffonion/lua-resty-acme@aa484cc)
- **autossl:** move chains set condition back inside the main loop [b83a535](fffonion/lua-resty-acme@b83a535)
- **autossl:** add blocking mode [5a623a5](fffonion/lua-resty-acme@5a623a5)
flrgh pushed a commit that referenced this issue Dec 8, 2022
<a name="0.10.1"></a>
## [0.10.1] - 2022-12-06
### bug fixes
- **zerossl:** concatenate response body as string instead of table ([#98](fffonion/lua-resty-acme#98)) [986b1db](fffonion/lua-resty-acme@986b1db)


<a name="0.10.0"></a>
## [0.10.0] - 2022-11-18
### features
- **autossl:** expose function to get cert from LRU cache ([#96](fffonion/lua-resty-acme#96)) [6135d0e](fffonion/lua-resty-acme@6135d0e)
- **autossl:** better cache handling in blocking mode [40f5d2d](fffonion/lua-resty-acme@40f5d2d)
- **autossl:** fix behavior change in non blocking mode [aa484cc](fffonion/lua-resty-acme@aa484cc)
- **autossl:** move chains set condition back inside the main loop [b83a535](fffonion/lua-resty-acme@b83a535)
- **autossl:** add blocking mode [5a623a5](fffonion/lua-resty-acme@5a623a5)
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

No branches or pull requests

2 participants