# Ziti TV Jan 10 2025 - Windows + OIDC

**URL:** <https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744>\
**Category:** Ziti TV\
**Created:** [January 10, 2025, 12:27pm UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744 "2025-01-10T12:27:40Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [January 10, 2025, 12:27pm UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744/1 "2025-01-10T12:27:40Z")

</div>

On this Ziti TV, we'll look at the new OIDC support being added to Windows specifically. How to configure an IdP for OpenZiti and how to use it in the ZDEW.

Live on YouTube at 11 AM ET. Watch live, ask questions or check out the replay:

[![](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/7/735203abaaedc252c85beee04fc7c1410b24ab8a.jpeg "Ziti TV Jan 10 2025 - Windows + OIDC") ](https://www.youtube.com/watch?v=8ViQHzFUj_Y)

---

<div class="post-metadata">

**Author:** ![blup66](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@blup66](https://openziti.discourse.group/u/blup66)\
**Post date:** [January 11, 2025, 10:59pm UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744/2 "2025-01-11T22:59:29Z")

</div>

This was very helpful. Thanks! Getting much further in the process now vs the attempt I gave before the video. Currently getting caught up many errors depending on the config combinations I try (finicky like you say) but currently w/ error=[jwt failed to parse: token signature is invalid: crypto/rsa: verification error]} per the controller. Trying with Entra as the IDP. Switching between v1 and v2 access tokens is also another interesting setting on the Entra side which the Browzer docs brought my attention to. Going to keep trying and will report back..

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [January 11, 2025, 11:07pm UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744/3 "2025-01-11T23:07:29Z")

</div>

> [@blup66](#):
>
> jwt failed to parse: token signature is invalid: crypto/rsa: verification error

this makes me think the controller couldn't verify the JWT given the JWKS endpoint provided, or the audience is incorrect. If you can obtain the token that is being used, you can put it into something like [jwt.io](http://jwt.io) and inspect your jwt.

My guess is either:

- incorrect audience
- incorrect issuer
- incorrect client id
- improperly mapped jwks endpoint or the endpoint is self-signed

Unfortunately, debugging this can be quite difficult, particularly if this isn't something you do "every day". Some IdPs like Keycloak will allow you to generate a JWT so you can inspect it and compare fields and such. If Entra allows you to do that, that is often a good first step to make sure the JWT seems ok. You can always post the JWT contents here as well but not the whole base64 jwt!!! Just the contents in json form if you want somone (me) to have a peek.

---

<div class="post-metadata">

**Author:** ![blup66](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@blup66](https://openziti.discourse.group/u/blup66)\
**Post date:** [January 11, 2025, 11:24pm UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744/5 "2025-01-11T23:24:53Z")

</div>

Also I should have clarified that all other indications are that I am successfully authenticating. The Ziti localhost success page loads up, and sign in logs at my IDP show a successful auth attempt..

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [January 11, 2025, 11:30pm UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744/6 "2025-01-11T23:30:15Z")

</div>

Yeah good. That at least means you have the configuration correct in the controller for the ZDEW to begin/complete the PKCE flow. That also means a JWT is being sent through to the controller, the controller just isn't able to verify the JWT. In the past, I think the only time I've had this happen was when my JWKS uri was self-signed. If your jwks endpoint is not self-signed, is there possibly some sort of DPI going on with TLS? Is something trying to terminate the connection to the IdP and inspect the packets?

Can you share the controller logs (DM if you wish) when you try to auth?

---

<div class="post-metadata">

**Author:** ![blup66](https://avatars.discourse-cdn.com/v4/letter/b/34f0e0/32.png) [@blup66](https://openziti.discourse.group/u/blup66)\
**Post date:** [January 12, 2025, 12:35am UTC](https://openziti.discourse.group/t/ziti-tv-jan-10-2025-windows-oidc/3744/7 "2025-01-12T00:35:16Z")

</div>

Not sure if I need to bump up a logging level but this is all I'm seeing right now:

> [330709.505] ERROR ziti/controller/model.(\*AuthModuleExtJwt).process: {authMethod=[ext-jwt]} encountered 1 candidate JWTs and all failed to validate for primary authentication, see the following log messages  
> [330709.505] ERROR ziti/controller/model.(\*candidateResult).LogResult: {authMethod=[ext-jwt] issuer= audience= error=[jwt failed to parse: token signature is invalid: crypto/rsa: verification error]} failed to validate candidate JWT at index 0
