From 2e40f70b0522c15465b619910aef7982e590d0da Mon Sep 17 00:00:00 2001 From: Livio Amstutz Date: Fri, 31 Jan 2020 14:01:45 +0100 Subject: [PATCH] fixes --- example/client/app/app.go | 2 +- pkg/oidc/token.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/client/app/app.go b/example/client/app/app.go index 80c4190..f1b99d7 100644 --- a/example/client/app/app.go +++ b/example/client/app/app.go @@ -77,7 +77,7 @@ func main() { http.Handle(callbackPath, provider.CodeExchangeHandler(marshal)) http.HandleFunc("/test", func(w http.ResponseWriter, r *http.Request) { - tokens, err := provider.ClientCredentials(ctx, "urn:abraxas:iam:audience_client_id:TM-V3") + tokens, err := provider.ClientCredentials(ctx, "scope") if err != nil { http.Error(w, "failed to exchange token: "+err.Error(), http.StatusUnauthorized) return diff --git a/pkg/oidc/token.go b/pkg/oidc/token.go index 05357d3..6f1496f 100644 --- a/pkg/oidc/token.go +++ b/pkg/oidc/token.go @@ -74,7 +74,7 @@ type jsonToken struct { AuthenticationContextClassReference string `json:"acr,omitempty"` AuthenticationMethodsReferences []string `json:"amr,omitempty"` SessionID string `json:"sid,omitempty"` - Actor interface{} `json:"act,omitempty"` + Actor interface{} `json:"act,omitempty"` //TODO: impl Scopes string `json:"scope,omitempty"` ClientID string `json:"client_id,omitempty"` AuthorizedActor interface{} `json:"may_act,omitempty"` //TODO: impl