Skip to content

Draft: Use Keycloak for Guest users / Lightweight Users #386

@micbar

Description

@micbar

Description

One of the long standing requests by admins is if OpenCloud can support guest users. In the past, this was often discussed as "we can add an external user during sharing" (this user has been provisioned on the fly and got an invite link)

Current Situation

OpenCloud has no "invite external" user feature. But something similar can be achieved with Keycloak

Adding Keycloak Admins for the OpenCloud Realm

Assign some roles to the user

Image

User dennis can login as Realm admin

https://keycloak.keycloak-daily.opencloud.rocks/admin/openCloud/console/#/openCloud

Dennis is now User / Group Admin

Image

Dennis can add users and groups and assign users to roles and groups.

Tip

The default Keycloak Role Assignment should be OpenCloudGuest. In this case, newly added users get no personal space, which fulfils the Use case for Guest / Lightweight user

Invite a user

Image

You can choose mandatory actions for the user:

Image

Set the initial password

Image

Guest Users First Login

Image

Required Action: Change Password

Image

Required Action: Update Profile

Image

Required Action: Verify Email

Image

Successful Login: No Personal Space

Image

Self Registration

You can also enable Self Registration. That allows any user to register in self service. You need to enable it on the desired Realm:

Enable Self Registration

Image

Login View

Image

Register Form

Image

Success

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions