Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions go/demo_eventticket.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"

"github.com/golang-jwt/jwt"
"github.com/google/uuid"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
oauthJwt "golang.org/x/oauth2/jwt"
"io"
"net/http"
"os"
"strings"
)

// [END imports]
Expand Down Expand Up @@ -340,8 +341,8 @@ func (d *demoEventticket) createJwtNewObjects(issuerId, classSuffix, objectSuffi
var payload map[string]interface{}
json.Unmarshal([]byte(fmt.Sprintf(`
{
"genericClasses": [%s],
"genericObjects": [%s]
"eventTicketClasses": [%s],
"eventTicketObjects": [%s]
}
`, newClass, newObject)), &payload)

Expand Down
13 changes: 7 additions & 6 deletions go/demo_flight.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"

"github.com/golang-jwt/jwt"
"github.com/google/uuid"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
oauthJwt "golang.org/x/oauth2/jwt"
"io"
"net/http"
"os"
"strings"
)

// [END imports]
Expand Down Expand Up @@ -320,8 +321,8 @@ func (d *demoFlight) createJwtNewObjects(issuerId, classSuffix, objectSuffix str
var payload map[string]interface{}
json.Unmarshal([]byte(fmt.Sprintf(`
{
"genericClasses": [%s],
"genericObjects": [%s]
"flightClasses": [%s],
"flightObjects": [%s]
}
`, newClass, newObject)), &payload)

Expand Down
13 changes: 7 additions & 6 deletions go/demo_giftcard.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"

"github.com/golang-jwt/jwt"
"github.com/google/uuid"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
oauthJwt "golang.org/x/oauth2/jwt"
"io"
"net/http"
"os"
"strings"
)

// [END imports]
Expand Down Expand Up @@ -288,8 +289,8 @@ func (d *demoGiftcard) createJwtNewObjects(issuerId, classSuffix, objectSuffix s
var payload map[string]interface{}
json.Unmarshal([]byte(fmt.Sprintf(`
{
"genericClasses": [%s],
"genericObjects": [%s]
"giftCardClasses": [%s],
"giftCardObjects": [%s]
}
`, newClass, newObject)), &payload)

Expand Down
13 changes: 7 additions & 6 deletions go/demo_loyalty.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"

"github.com/golang-jwt/jwt"
"github.com/google/uuid"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
oauthJwt "golang.org/x/oauth2/jwt"
"io"
"net/http"
"os"
"strings"
)

// [END imports]
Expand Down Expand Up @@ -310,8 +311,8 @@ func (d *demoLoyalty) createJwtNewObjects(issuerId, classSuffix, objectSuffix st
var payload map[string]interface{}
json.Unmarshal([]byte(fmt.Sprintf(`
{
"genericClasses": [%s],
"genericObjects": [%s]
"loyaltyClasses": [%s],
"loyaltyObjects": [%s]
}
`, newClass, newObject)), &payload)

Expand Down
13 changes: 7 additions & 6 deletions go/demo_offer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"

"github.com/golang-jwt/jwt"
"github.com/google/uuid"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
oauthJwt "golang.org/x/oauth2/jwt"
"io"
"net/http"
"os"
"strings"
)

// [END imports]
Expand Down Expand Up @@ -292,8 +293,8 @@ func (d *demoOffer) createJwtNewObjects(issuerId, classSuffix, objectSuffix stri
var payload map[string]interface{}
json.Unmarshal([]byte(fmt.Sprintf(`
{
"genericClasses": [%s],
"genericObjects": [%s]
"offerClasses": [%s],
"offerObjects": [%s]
}
`, newClass, newObject)), &payload)

Expand Down
13 changes: 7 additions & 6 deletions go/demo_transit.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
"os"
"strings"

"github.com/golang-jwt/jwt"
"github.com/google/uuid"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"
oauthJwt "golang.org/x/oauth2/jwt"
"io"
"net/http"
"os"
"strings"
)

// [END imports]
Expand Down Expand Up @@ -348,8 +349,8 @@ func (d *demoTransit) createJwtNewObjects(issuerId, classSuffix, objectSuffix st
var payload map[string]interface{}
json.Unmarshal([]byte(fmt.Sprintf(`
{
"genericClasses": [%s],
"genericObjects": [%s]
"transitClasses": [%s],
"transitObjects": [%s]
}
`, newClass, newObject)), &payload)

Expand Down