# OIDC Issue: URI+with+undefined+scheme (Solved)

**URL:** <https://community.penpot.app/t/oidc-issue-uri-with-undefined-scheme-solved/8292>\
**Category:** Ask the community\
**Created:** [March 28, 2025, 1:57am UTC](https://community.penpot.app/t/oidc-issue-uri-with-undefined-scheme-solved/8292 "2025-03-28T01:57:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Korbs](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/korbs/32/748_2.png) [@Korbs](https://community.penpot.app/u/Korbs)\
**Post date:** [March 28, 2025, 1:57am UTC](https://community.penpot.app/t/oidc-issue-uri-with-undefined-scheme-solved/8292/1 "2025-03-28T01:57:34Z")

</div>

For sometime now, I been trying to get OpenID Connect to work with my login portal. Previously I was working with LogTo, but I’ve planned to use Keycloak now.

When I login via OpenID Connect on my Penpot instance, the login screen from Keycloak does appear with no issue, but after logging in the following path is returned:  
`/#/auth/login?error=unable-to-auth&hint=URI+with+undefined+scheme`

I’m not sure how to go about fixing the undefined scheme issue.

* * *

### Setup

Environment Variables setup in `docker-compose.yml`:

```yml
      - PENPOT_OIDC_CLIENT_ID=REDACTED
      - PENPOT_OIDC_CLIENT_SECRET=REDACTED
      - PENPOT_OIDC_BASE_URI=https://REDACTED/realms/Wormhole/.well-known/openid-configuration
      - PENPOT_OIDC_AUTH_URI=https://REDACTED/realms/Wormhole/protocol/openid-connect/auth
      - PENPOT_OIDC_TOKEN_URI=https://REDACTED/realms/Wormhole/protocol/openid-connect/token
      - PENPOT_OIDC_USER_INFO_SOURCE=https://REDACTED/realms/Wormhole/protocol/openid-connect/userinfo
      - PENPOT_OIDC_NAME_ATTR=username
      - PENPOT_OIDC_EMAIL_ATTR=email

```

Both `enable-login-with-oidc` and `enable-oidc-registration` are enabled for frontend and backup of this Penpot instance.

Keycloak setup:

- Valid Redirect URL: `https://REDACTED/api/auth/oauth/oidc/callback`
- Client Authentication (Enabled)
- Authorization (Enabled)
- Authentication Flow:
  - Standard Flow (Enabled)
  - Direct Access Grants (Enabled)
  - Implicit Flow (Enabled)
  - Service Accounts Roles (Enabled)
  - OAuth 2.0 Device Authorization Grant (Disabled)
  - OIDC CIBA Grant (Disabled)

---

<div class="post-metadata">

**Author:** ![Arty](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/arty/32/8727_2.png) [@Arty](https://community.penpot.app/u/Arty)\
**Post date:** [August 22, 2025, 4:14am UTC](https://community.penpot.app/t/oidc-issue-uri-with-undefined-scheme-solved/8292/2 "2025-08-22T04:14:26Z")

</div>

For me Change the BASE URI in penpot settings to `PENPOT_OIDC_BASE_URI=https://REDACTED/realms/Wormhole/`  
solved this issue

---

<div class="post-metadata">

**Author:** ![Korbs](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/korbs/32/748_2.png) [@Korbs](https://community.penpot.app/u/Korbs)\
**Post date:** [December 15, 2025, 3:43am UTC](https://community.penpot.app/t/oidc-issue-uri-with-undefined-scheme-solved/8292/3 "2025-12-15T03:43:40Z")

</div>

Thanks, this worked. OIDC is working as expected now.
