motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.78k stars 318 forks source link

Updating OAuth Servers via REST API does not reload OAuth Servers #397

Open s4nji opened 5 years ago

s4nji commented 5 years ago

When oauth_servers is updated via REST API, the changes are saved (if using mongo provider), but are not immediately loaded, requiring a server restart, or API Definition change to trigger configuration reload. It should be immediately reloaded when it is updated.

Reproduction Steps:

  1. Create/Update/Delete an oauth server via REST API

Expected behavior: Changes are immediately effective.

Observed behavior: Database is updated, but janus does not reload the updated configuration.

Janus version: 3.8.6

Workaround Sending any API Definition update will reload OAuth Server configurations as well.

BioDread commented 5 years ago

confirm