mirror of
https://github.com/davidallendj/opaal.git
synced 2025-12-20 03:27:02 -07:00
Added audience override for token sent to authorization server
This commit is contained in:
parent
20ba7bc735
commit
c67c6f75a2
3 changed files with 12 additions and 3 deletions
|
|
@ -45,6 +45,7 @@ type TokenOptions struct {
|
|||
Forwarding bool `yaml:"forwarding"`
|
||||
Refresh bool `yaml:"refresh"`
|
||||
Scope []string `yaml:"scope"`
|
||||
//TODO: allow specifying audience in returned token
|
||||
}
|
||||
|
||||
type Authentication struct {
|
||||
|
|
@ -55,9 +56,10 @@ type Authentication struct {
|
|||
}
|
||||
|
||||
type Authorization struct {
|
||||
Token TokenOptions `yaml:"token"`
|
||||
Endpoints Endpoints `yaml:"endpoints"`
|
||||
KeyPath string `yaml:"key-path"`
|
||||
Token TokenOptions `yaml:"token"`
|
||||
Audience []string `yaml:"audience"` // NOTE: overrides the "aud" claim in token sent to authorization server
|
||||
}
|
||||
|
||||
type Config struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue