# Gitea & oidc (keycloak) role mapping

**URL:** <https://forum.gitea.com/t/gitea-oidc-keycloak-role-mapping/6771>\
**Category:** General\
**Created:** [February 22, 2023, 4:38pm UTC](https://forum.gitea.com/t/gitea-oidc-keycloak-role-mapping/6771 "2023-02-22T16:38:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baitanik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/baitanik/32/3159_2.png) [@Baitanik](https://forum.gitea.com/u/Baitanik)\
**Post date:** [February 22, 2023, 4:38pm UTC](https://forum.gitea.com/t/gitea-oidc-keycloak-role-mapping/6771/1 "2023-02-22T16:38:51Z")

</div>

we have integrated keycloak with keycloak. Authentication is working fine. But Authorization does not work.

How can we use keycloak roles to directly map the gitea roles (admin/user role) ?

---

<div class="post-metadata">

**Author:** ![hmoffatt](https://avatars.discourse-cdn.com/v4/letter/h/c57346/32.png) [@hmoffatt](https://forum.gitea.com/u/hmoffatt)\
**Post date:** [January 29, 2024, 8:32am UTC](https://forum.gitea.com/t/gitea-oidc-keycloak-role-mapping/6771/2 "2024-01-29T08:32:14Z")

</div>

Hi, did you find an answer to this?
