Skip to content

Commit

Permalink
Added verbose print to show access and ID token from IDP
Browse files Browse the repository at this point in the history
  • Loading branch information
davidallendj committed Jun 12, 2024
1 parent e929fac commit 8fe917b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/flows/jwt_bearer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func NewJwtBearerFlow(eps JwtBearerFlowEndpoints, params JwtBearerFlowParams) (s
if client == nil {
return "", fmt.Errorf("invalid client (client is nil)")
}

if verbose {
fmt.Printf("ID token (IDP): %s\n access token (IDP): %s", accessToken, idToken)
}
if accessToken != "" {
_, err := jws.Verify([]byte(accessToken), jws.WithKeySet(client.Provider.KeySet), jws.WithValidateKey(true))
if err != nil {
Expand Down

0 comments on commit 8fe917b

Please sign in to comment.