Skip to content

[Support Request]: Disable profile page for users with social login #3156

@androbey

Description

@androbey

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi all,

I implemented a custom Oauth2 Provider and used the Theme System for it.
This works very well.

However, I want to achieve that those users, who can login via Oauth2 (Social Login) are not able to edit their profile at all.
Goal is that those users can only login via the Oauth2 provider and not change their name, avatar and so on..

I don't think this is much related to e.g. #1090 as I still want login for certain users with email/password and those user's should be able to edit their profile.

As far as I can tell current state of Theme system does not provide a way to hook into the render process, does it? (So that I can conditionally throw "No Access error" if user has social login connected).

Exact BookStack Version

v21.12.1

Log Content

No response

PHP Version

8.0

Hosting Environment

Ubuntun 20.04 (VPS, manual installation)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions