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

A token was not found in the Security Context #10

Open
ylcdx opened this issue Nov 15, 2011 · 0 comments
Open

A token was not found in the Security Context #10

ylcdx opened this issue Nov 15, 2011 · 0 comments

Comments

@ylcdx
Copy link

ylcdx commented Nov 15, 2011

Hi,

I've this Exception after authentification : "A token was not found in the Security Context"

My config.yml :

opensky_ldap:
client:
host: ldap.mysite.com
port: 382
username: "admin"
password: ************
useStartTls: false
useSsl: false
accountDomainName: mysite.com
accountDomainNameShort: mysite
baseDn: "CN=Users,DC=mysite,DC=com"
user_base_dn: ou=Utilisateurs,ou=DSI,dc=mysite,dc=com
user_filter: (objectClass=user)
username_attribute: uid
role_base_dn: ou=Groupes,ou=DSI,dc=mysite,dc=com
role_filter: (objectClass=role)
role_name_attribute: cn
role_user_attribute: memberuid
security:
role_prefix: ROLE_LDAP_
default_roles: [ROLE_USER, ROLE_LDAP]

My security.yml

security:
acl:
connection: default
factories:
- %kernel.root_dir%/../vendor/bundles/OpenSky/Bundle/LdapBundle/Resources/config/security_factories.xml
providers:
ldap:
id: opensky_ldap.user_provider
firewalls:
backend:
provider: ldap
pattern: ^/
http_basic_pre_auth: true
stateless: true
access_control:
- { path: ^/, roles: IS_AUTHENTICATED }

I must create my UserToken? or is it a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant