fixes
This commit is contained in:
parent
cdda3af3ff
commit
2e40f70b05
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue