# Using Inrupt Solid Java Client with CSS

**URL:** <https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293>\
**Category:** General Discussion\
**Created:** [March 1, 2024, 7:30pm UTC](https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293 "2024-03-01T19:30:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkw](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rkw/32/4237_2.png) [@rkw](https://forum.solidproject.org/u/rkw)\
**Post date:** [March 1, 2024, 7:30pm UTC](https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293/1 "2024-03-01T19:30:40Z")

</div>

Hi, I’m new to Solid and the Solid ecosystem am have been following some tutorials. I have set up a local development environment using the Community Solid Server and have been able to create some collections and add some RDF data and retrieve it all OK using the Inrupt `solid-client-java` library without authentication turned on in CSS. Now I have enabled `webacl.json` in CSS I have hit some difficulties. I created a credential token for my pod in CSS and then tried to create a session as follows (N.B. this is Scala code):-

```auto
private val session: Session = 
OpenIdSession.ofClientCredentials(
  new URI("http://localhost:3000/"),
  "{MY_TOKEN_IDENTIFIER}",
  "{MY_TOKEN_SECRET}",
  "client_secret_basic"
)

```

Running this results in an exception as follows:

```auto
Execution exception\[\[CompletionException: com.inrupt.client.openid.OpenIdException: Unable to parse ID token\]\]

```

When I debug the step to create a session I can see that the response from CSS does not include an ID Token but rather an Access Token. I don’t know if this means the Inrupt Java client is incompatible with CSS or whether I am doing something wrong. Any suggestions please?

---

<div class="post-metadata">

**Author:** ![gaz009](https://avatars.discourse-cdn.com/v4/letter/g/a5b964/32.png) [@gaz009](https://forum.solidproject.org/u/gaz009)\
**Post date:** [March 4, 2024, 3:49am UTC](https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293/2 "2024-03-04T03:49:44Z")

</div>

I would recommend going through the Community Solid Server documentation and following the examples on authenticating with their service. While CSS and ESS (Enterprise SOLID Server by Inrupt) are both SOLID compliant, the OIDC specification and interoperability is consistent currently, but should be more stable in the future.

---

<div class="post-metadata">

**Author:** ![rkw](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rkw/32/4237_2.png) [@rkw](https://forum.solidproject.org/u/rkw)\
**Post date:** [March 4, 2024, 10:10am UTC](https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293/3 "2024-03-04T10:10:21Z")

</div>

OK, I think you mean inconsistent, which would make more sense. I don’t think the CSS documentation mentions the Inrupt Java Client but the tutorials reference the Inrupt JavaScript authentication client - is this what most people are using to authenticate currently?

---

<div class="post-metadata">

**Author:** ![Siemen](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Siemen](https://forum.solidproject.org/u/Siemen)\
**Post date:** [March 4, 2024, 1:00pm UTC](https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293/4 "2024-03-04T13:00:26Z")

</div>

This authentication problem is also discussed in the discussions on the Github of the Community Solid Server. Maybe you learn something more here: [Client Credential Flow & Inrupt Java Library · CommunitySolidServer/CommunitySolidServer · Discussion #1687 · GitHub](https://github.com/CommunitySolidServer/CommunitySolidServer/discussions/1687)

---

<div class="post-metadata">

**Author:** ![rkw](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rkw/32/4237_2.png) [@rkw](https://forum.solidproject.org/u/rkw)\
**Post date:** [March 7, 2024, 7:31pm UTC](https://forum.solidproject.org/t/using-inrupt-solid-java-client-with-css/7293/5 "2024-03-07T19:31:50Z")

</div>

Thanks Siemen, I hadn’t seen that discussion. It is definitely related so I will add my observations there.
