Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

403 Forbidden while trying to access /admin #502

Open
NikitaDergunov opened this issue Nov 14, 2024 · 2 comments
Open

403 Forbidden while trying to access /admin #502

NikitaDergunov opened this issue Nov 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@NikitaDergunov
Copy link

NikitaDergunov commented Nov 14, 2024

Describe the bug

I've deployed fief server and worker into Sliplane. When I try to open /admin I get redirected to a login page, where I put credantials from FIEF_MAIN_USER_EMAIL and FIEF_MAIN_USER_PASSWORD. There I get a 403 Forbidden page, instead of admin dashboard.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://fief-server.sliplane.app/admin
  2. Login (I can provide credantials on request, if they are needed)
  3. See error

Expected behavior

Admin dashboard opens

Configuration

  • Cloud or self-hosted: Sliplane
  • If self-hosted, Fief version: latest
  • we deployed it like in the dockerfile but without trafik, because we’re behind another reverse-proxy

image

@NikitaDergunov NikitaDergunov added the bug Something isn't working label Nov 14, 2024
Copy link

fief-bailiff bot commented Nov 14, 2024

Hail, @NikitaDergunov 👋 Welcome to Fief's kingdom!

Our team will get back to you very soon to help.

In the meantime, take a minute to star our repository ⭐️

star-fief

Want to support us?

Subscribe to one of our paid plan to help us continue our work and receive exclusive information and benefits! Starts at $5/month 🪙

Subscribe

Farewell!

@sihuannewrise
Copy link

sihuannewrise commented Jan 1, 2025

Hi, I faced the same problem on my self-hosted service. I found a roundabout until you fix the permissions logic.

I connected to fief db with pgadmin and added a record to fief_user_permission table.
fief01

user_id took from fief_users table (my user id)
permission_id - from fief_permission (it was Fief Administrator)
from_role_id - from fief_roles (Administrator)
id - generated from online UUID generator

One remark: the record row number was zero, as you can see at pic.

Still, after I saved the record, admin access was granted from 'fief.mydomain/admin'.
fief02

A went to my user's roles and permission sections and added admin roles.

After that the record number in db became 1-st.

fief03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

2 participants