-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable authorization directives by default (#3713)
Fix #3842 This requires a few steps, because authorization directives should not be usable without a valid license, so the license enforcement code has to check for their presence in the graph. Co-authored-by: Maria Elisabeth Schreiber <[email protected]> Co-authored-by: Jeremy Lempereur <[email protected]>
- Loading branch information
1 parent
1103bf8
commit 0e51563
Showing
10 changed files
with
236 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
### Authorization directives are enabled by default ([Issue #3842](https://github.com/apollographql/router/issues/3842)) | ||
|
||
If the router starts with an API key from an Enterprise account, and the schema contains the authorization directives, then they will be usable directly without further configuration. | ||
|
||
By [@Geal](https://github.com/Geal) in https://github.com/apollographql/router/pull/3713 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...r__uplink__license_enforcement__test__restricted_authorization_directives_via_schema.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: apollo-router/src/uplink/license_enforcement.rs | ||
expression: report.to_string() | ||
--- | ||
Schema features: | ||
* @authenticated | ||
https://specs.apollo.dev/authenticated/v0.1 | ||
|
||
* @requiresScopes | ||
https://specs.apollo.dev/requiresScopes/v0.1 |
Oops, something went wrong.