Skip to content

Commit

Permalink
Merge pull request #5573 from ThisaruGuruge/master
Browse files Browse the repository at this point in the history
[Master] Fix incorrect file path in GraphQL JWT BBE
  • Loading branch information
ThisaruGuruge authored Aug 12, 2024
2 parents 26445ad + 7fd3e3a commit 5e30d14
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_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 5e30d14

Please sign in to comment.