-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
beta_scope attribute for api and endpoint block provides required sco…
…pe checked by scope access control
- Loading branch information
Johannes Koch
committed
Sep 16, 2021
1 parent
870ce61
commit d90aa5e
Showing
6 changed files
with
159 additions
and
5 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
server "scoped jwt" { | ||
api { | ||
access_control = ["myjwt"] | ||
beta_scope = "a" | ||
endpoint "/foo" { | ||
beta_scope = { | ||
get = "" | ||
post = "foo" | ||
} | ||
response { | ||
status = 204 | ||
} | ||
} | ||
endpoint "/bar" { | ||
beta_scope = { | ||
"*" = "more" | ||
} | ||
response { | ||
status = 204 | ||
} | ||
} | ||
} | ||
} | ||
definitions { | ||
jwt "myjwt" { | ||
header = "authorization" | ||
signature_algorithm = "HS256" | ||
key = "asdf" | ||
beta_scope_claim = "scp" | ||
} | ||
} |