1000 search results

31 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 9
firewalls:
// ... lines 11 - 15
main:
// ... lines 17 - 21
logout:
path: /logout
// ... lines 24 - 31
See Code Block in Script
28 lines | app/config/security.yml
// ... lines 1 - 2
security:
# http://symfony.com/doc/current/book/security.html#where-do-users-come-from-user-providers
providers:
our_users:
entity: { class: AppBundle\Entity\User, property: email }
// ... lines 9 - 28
See Code Block in Script
33 lines | app/config/security.yml
// ... lines 1 - 2
security:
encoders:
AppBundle\Entity\User: bcrypt
// ... lines 6 - 33
See Code Block in Script
35 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 33
access_control:
- { path: ^/admin, roles: ROLE_USER }
See Code Block in Script
35 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 33
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
See Code Block in Script
36 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 33
access_control:
# - { path: ^/admin, roles: ROLE_ADMIN }
See Code Block in Script
40 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 14
firewalls:
// ... lines 16 - 20
main:
// ... lines 22 - 28
switch_user: ~
// ... lines 30 - 40
See Code Block in Script
40 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 6
role_hierarchy:
ROLE_ADMIN: [ROLE_MANAGE_GENUS, ROLE_ALLOWED_TO_SWITCH]
// ... lines 9 - 40
See Code Block in Script
39 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 6
role_hierarchy:
ROLE_ADMIN: [ROLE_MANAGE_GENUS]
// ... lines 9 - 39
See Code Block in Script
40 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 14
firewalls:
// ... lines 16 - 20
main:
anonymous: ~
guard:
authenticators:
- app.security.login_form_authenticator
// ... lines 26 - 40
See Code Block in Script
32 lines | app/config/security.yml
security:
// ... lines 2 - 8
firewalls:
main:
// ... lines 11 - 20
guard:
authenticators:
- 'jwt_token_authenticator'
// ... lines 24 - 32
See Code Block in Script
32 lines | app/config/security.yml
security:
// ... lines 2 - 8
firewalls:
main:
pattern: ^/
anonymous: true
form_login:
# The route name that the login form submits to
check_path: security_login_check
login_path: security_login_form
logout:
# The route name the user can go to in order to logout
path: security_logout
guard:
authenticators:
- 'jwt_token_authenticator'
// ... lines 24 - 32
See Code Block in Script
32 lines | app/config/security.yml
security:
// ... lines 2 - 8
firewalls:
main:
// ... lines 11 - 12
form_login:
# The route name that the login form submits to
check_path: security_login_check
login_path: security_login_form
// ... lines 17 - 32
See Code Block in Script
36 lines | app/config/security.yml
security:
// ... lines 2 - 8
firewalls:
api:
pattern: ^/api/
// ... lines 12 - 36
See Code Block in Script
36 lines | app/config/security.yml
security:
// ... lines 2 - 8
firewalls:
api:
pattern: ^/api/
anonymous: true
stateless: true
// ... lines 14 - 36
See Code Block in Script
36 lines | app/config/security.yml
security:
// ... lines 2 - 8
firewalls:
api:
pattern: ^/api/
anonymous: true
stateless: true
guard:
authenticators:
- 'jwt_token_authenticator'
main:
pattern: ^/
anonymous: true
form_login:
# The route name that the login form submits to
check_path: security_login_check
login_path: security_login_form
logout:
# The route name the user can go to in order to logout
path: security_logout
// ... lines 28 - 36
See Code Block in Script
31 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 5
providers:
my_entity_users:
entity:
class: AppBundle:User
// ... lines 10 - 31
See Code Block in Script
31 lines | app/config/security.yml
// ... lines 1 - 2
security:
// ... lines 4 - 10
firewalls:
// ... lines 12 - 16
main:
anonymous: ~
// ... lines 19 - 21
guard:
authenticators:
- weird_authenticator
// ... lines 25 - 31
See Code Block in Script
70 lines | templates/security/login.html.twig
// ... lines 1 - 4
{% block body %}
<section class="px-6 py-10 sm:py-16">
<div class="mx-auto max-w-md">
<div class="rounded-2xl border border-white/10 bg-[#16202A]/80 p-8 shadow-2xl shadow-black/30 backdrop-blur-sm">
// ... lines 9 - 14
<form method="post" class="space-y-6">
// ... lines 16 - 56
<div class="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 px-4 py-3 text-sm text-white/80">
<input type="checkbox" checked name="_remember_me" id="_remember_me" class="rounded border-white/20 bg-transparent text-cyan-400 focus:ring-cyan-400">
<label for="_remember_me">Remember me</label>
</div>
// ... lines 61 - 64
</form>
</div>
</div>
</section>
{% endblock %}
See Code Block in Script
62 lines | src/Security/LoginFormAuthenticator.php
// ... lines 1 - 18
final class LoginFormAuthenticator extends AbstractLoginFormAuthenticator
{
// ... lines 21 - 44
public function onAuthenticationSuccess(Request $request, TokenInterface $token, string $firewallName): ?Response
{
if ($targetPath = $request->query->get('_target_path')) {
return new RedirectResponse($targetPath);
}
// ... lines 50 - 54
}
// ... lines 56 - 60
}
See Code Block in Script