Skip to content

Commit

Permalink
Fix incorrect file path in GraphQL JWT BBE
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisaruGuruge committed Aug 12, 2024
1 parent bb738b0 commit 5059e2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

The `graphql:Client` can connect to a service that is secured with self-signed JWT by adding the `Authorization: Bearer <token>` header by passing the `graphql:JwtIssuerConfig` to the `auth` configuration of the client. A self-signed JWT is issued before the request is sent.

::: code graphql_client_security_self_signed_jwt_authentication.bal :::
::: code graphql_client_security_jwt_authentication.bal :::

## Prerequisites
- Run the GraphQL service given in the [JWT Auth service](/learn/by-example/graphql-service-jwt-auth/) example.

Run the client program by executing the command below.

::: out graphql_client_security_self_signed_jwt_authentication.out :::
::: out graphql_client_security_jwt_authentication.out :::

## Related links
- [`graphql:JwtIssuerConfig` record - API documentation](https://lib.ballerina.io/ballerina/graphql/latest#JwtIssuerConfig)
Expand Down

0 comments on commit 5059e2b

Please sign in to comment.