F
F
fife2021-05-13 18:54:11
ubuntu
fife, 2021-05-13 18:54:11

Where and how can I save a Spring user?

The question is, I wrote a semblance of my authorization, in fact it works on parole, that is, I enter a unique name, find such a person in the database, and get a user with a name and role, and based on his role, I want to give him different functions (the ability to use different controllers), conditionally, whether the director can look at the report for everyone, whether he is a worker, he can only look at himself.
A bit confused, where and how can I save this authorized user?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
X
xibir, 2018-11-16
@xibir

- boot from a bootable flash drive
- unpack
the archive where you need it - create folders that are not in the proc sys dev archive
- fix the unpacked /etc/fstab
- install grub (grub-install)
- generate /boot/grub/grub.cfg
After that, it should work, I have done this many times

K
klepiku, 2018-11-16
@klepiku

you can, without erasing (formatting), just mount everything during installation and the installation will save almost all packages
or figure out what is where and why, but it takes a long time
for you to find out the partition identifier and restore it in fstab, this is the first
, but in general, you start searching and "transferring ubuntu to another disk" with "Now we need to fix the UUID for partitions."

S
serkah, 2018-11-16
@serkah

in general, I figured it out myself and corrected fstab - now a new problem, I enter the password and it throws it back to the entry page. I reinstalled lightdm - no change

A
Alexey Cheremisin, 2021-05-13
@fife

There are many options.
- session on cookies
- session on keys in headers
- session on. JWT
Actually, everything is the same - it generates a session key and transmits it through headers, cookies or directly. And what is the format of the key - you decide. I like JWT.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question