p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
367 stars 65 forks source link

How can view organizations and styles Tab in keycloak Admin console #100

Closed syama-aot closed 1 year ago

syama-aot commented 1 year ago

I tried to compile keycloak-orgs package and got Jar file. Once i place the keycloak-orgs-0.36-SNAPSHOT.jar file in providers folder (keycloak 21.1.1) .I was able to access the organization API and created organization. Everything works smoothly. But I am unable to have organization tab in keycloak admin console. I tried to set the themes ( But i could not get phaseTwo theme) . Can you guide me in this regard .

xgp commented 1 year ago

The organization admin UI has to be built from our fork of the Keycloak admin UI.

https://github.com/p2-inc/keycloak

I would recommend instead using our docker images, which already contains everything.

https://quay.io/repository/phasetwo/phasetwo-keycloak?tab=tags

syama-aot commented 1 year ago

If I want to customize keycloak-orgs (attribute mapper format) , How can I change and upload again in that docker container? Can you provide me with a small example.

Thanks On Thu, Jun 22, 2023 at 4:22 PM Garth @.***> wrote:

Closed #100 https://github.com/p2-inc/keycloak-orgs/issues/100 as completed.

— Reply to this email directly, view it on GitHub https://github.com/p2-inc/keycloak-orgs/issues/100#event-9605167566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJO3PSN4CUD54VLYXCQEKLXMQPVZANCNFSM6AAAAAAZQAFMWU . You are receiving this because you authored the thread.Message ID: @.***>

xgp commented 1 year ago

You can either take a look at how the image gets built here:

https://github.com/p2-inc/phasetwo-containers

or just use our image as a base image and replace the jar in your Dockerfile.

syama-aot commented 1 year ago

Thanks, I'll check it out. I have one more question. I want to use the new role created in one organization in all other organizations also. Can you guide me on that

On Thu, Jun 22, 2023 at 6:29 PM Garth @.***> wrote:

You can either take a look at how the image gets built here:

https://github.com/p2-inc/phasetwo-containers

or just use our image as a base image and replace the jar in your Dockerfile.

— Reply to this email directly, view it on GitHub https://github.com/p2-inc/keycloak-orgs/issues/100#issuecomment-1602596470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJO3PRUGJO4GSHJTIPIXFTXMQ6UNANCNFSM6AAAAAAZQAFMWU . You are receiving this because you authored the thread.Message ID: @.***>

xgp commented 1 year ago

Not currently possible, but will be in the future. See https://github.com/p2-inc/keycloak-orgs/issues/48

syama-aot commented 1 year ago

Ok, thanks for the reply. At Least is it possible to add new default roles. That way we can get all default roles to all organizations right. Can you guide me on this direction

On Thu, Jun 22, 2023 at 6:51 PM Garth @.***> wrote:

Not currently possible, but will be in the future. See #48 https://github.com/p2-inc/keycloak-orgs/issues/48

— Reply to this email directly, view it on GitHub https://github.com/p2-inc/keycloak-orgs/issues/100#issuecomment-1602629374, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJO3PRLYJX77CCMB6VZTC3XMRBEPANCNFSM6AAAAAAZQAFMWU . You are receiving this because you authored the thread.Message ID: @.***>

xgp commented 1 year ago

That’s done in code here https://github.com/p2-inc/keycloak-orgs/blob/main/src/main/java/io/phasetwo/service/resource/OrganizationAdminAuth.java#L159

syama-aot commented 1 year ago

I added 2 roles productA-admin, orgA-admin . But it's not reflecting . Which are the places I need to update (which files) . Please guide me. Thanks

On Thu, Jun 22, 2023 at 7:34 PM Garth @.***> wrote:

That’s done in code here https://github.com/p2-inc/keycloak-orgs/blob/main/src/main/java/io/phasetwo/service/resource/OrganizationAdminAuth.java#L159

— Reply to this email directly, view it on GitHub https://github.com/p2-inc/keycloak-orgs/issues/100#issuecomment-1602700160, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJO3PQ4M7A4MQWQIRZBU73XMRGFZANCNFSM6AAAAAAZQAFMWU . You are receiving this because you authored the thread.Message ID: @.***>

xgp commented 1 year ago

When you add to that array, the additional roles are added to the org when the org is created.

For additional step-by-step guides, please post comprehensive information about exactly what you are doing and what you expect. I’m not able to provide personalized support here.

syama-aot commented 1 year ago

Ok, thanks for the clarification. I have a doubt is there any relation between realm roles and client roles of keycloak with org roles which we have.Or is it isolated. THANKS

On Thu, 22 Jun 2023, 7:55 pm Garth, @.***> wrote:

When you add to that array, the additional roles are added to the org when the org is created.

For additional step-by-step guides, please post comprehensive information about exactly what you are doing and what you expect. I’m not able to provide personalized support here.

— Reply to this email directly, view it on GitHub https://github.com/p2-inc/keycloak-orgs/issues/100#issuecomment-1602737311, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJO3PXU4DR6D6QEWKZJXSLXMRIXNANCNFSM6AAAAAAZQAFMWU . You are receiving this because you authored the thread.Message ID: @.***>

xgp commented 1 year ago

They are isolated. Please see the README.

syama-aot commented 1 year ago

Thank you for the clarification. Is it possible to change defined role as default role.

On Thu, 22 Jun 2023, 9:51 pm Garth, @.***> wrote:

They are isolated. Please see the README.

— Reply to this email directly, view it on GitHub https://github.com/p2-inc/keycloak-orgs/issues/100#issuecomment-1602965017, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWJO3PW2V73BFLSWOYNKY6LXMRWILANCNFSM6AAAAAAZQAFMWU . You are receiving this because you authored the thread.Message ID: @.***>

xgp commented 1 year ago

No.