Log message #4200298

# At Username Text
# Aug 29th 2019, 08:33 ndm @alexdd55976 That means that this option only accepts a callable, which must return a "distinguished name" string, as anonymous binds (binds without a distinguished name) aren't supported.
# Aug 29th 2019, 08:33 d.binz ok will do so, thought it was me :,)
# Aug 29th 2019, 08:15 admad @d.binz submit an issue on GH
# Aug 29th 2019, 08:15 alexdd55976 the more i read the more confused i am
# Aug 29th 2019, 08:08 neon1024 Morning all :wave:
# Aug 29th 2019, 07:40 alexdd55976 > bindDN: The Distinguished Name of the user to authenticate. Must be a callable. Anonymous binds are not supported. can anyone tell me what that means?
# Aug 29th 2019, 07:33 alexdd55976 Auteh
# Aug 29th 2019, 07:29 javier.villanueva @alexdd55976 I think that the two ways are: store the information in session (only for the user) or store the information in users database table, if is a lite information I think that is better in session for most speed access...
# Aug 29th 2019, 07:26 d.binz good morning. i have a problem with authentication. i am trying beta2 at the moment with both 2.x auth plugins. i did the setup according to the book and attached both plugins to the middleware. then i created a users controller with a login method but whenever i try to login the auth check fails with a strange error "Login URL `http://localhost/users/login` did not match `/users/login`." anyone has an idea?
# Aug 29th 2019, 07:25 alexdd55976 i want to do it the clean way... need the autentification later on to give users access to certain actions
# Aug 29th 2019, 07:24 javier.villanueva for write to the session
# Aug 29th 2019, 07:23 javier.villanueva is a lot of information for the session?
# Aug 29th 2019, 07:22 alexdd55976 i was thinking saving basic authinfo from AD to Users Table and then attach more detailed work related data to the users model
# Aug 29th 2019, 07:21 alexdd55976 yes. need to attach related userdata
# Aug 29th 2019, 07:20 javier.villanueva do you need ad data for more than authorization?
# Aug 29th 2019, 07:19 alexdd55976 Authenticate alsways wants to do stuff against users table, which... of course.. does not anything
# Aug 29th 2019, 07:18 alexdd55976 i authenticate against AD, which is fine so far, but need to use authentication component to use this data
# Aug 29th 2019, 07:18 javier.villanueva wich problem you have?
# Aug 29th 2019, 07:14 alexdd55976 anyone can help with authentication + ldap/ad data?
# Aug 29th 2019, 06:39 javier.villanueva Is it a good practice to use constants related to an entity in the global configuration file app.php? (for example entity states)
# Aug 29th 2019, 06:20 javier.villanueva solved, thanks
# Aug 29th 2019, 06:02 alexdd55976 Morning
# Aug 29th 2019, 06:01 javier.villanueva isValidCompany or similar...
# Aug 29th 2019, 06:01 javier.villanueva with a custom rule I suppose
# Aug 29th 2019, 06:00 admad yes you need build rules
# Aug 29th 2019, 05:54 javier.villanueva I am trying to create a validator rule for the next case: An entity has this fields "company_id", "state_id". And the states are ("open", "in_process", "closed") The rule should check that only we can create entities with duplicate company_id if the others have "closed" state. Do I need to use buildRules? I cant use the isUnique rule for the "closed" exception...
# Aug 29th 2019, 05:16 javier.villanueva are you tried testing your api from postman (or similar) to discard a problem in the Angular side?
# Aug 29th 2019, 05:14 javier.villanueva @ashish_onmobile check your chrome inspector to find errors?
# Aug 29th 2019, 05:13 conehead morning!
# Aug 29th 2019, 05:12 javier.villanueva morning all
# Aug 29th 2019, 04:11 kailas @challgren that was the issue! I was using the wrong template. thanks for the help!
# Aug 29th 2019, 03:18 ashish_onmobile but POST is not working.
# Aug 29th 2019, 03:18 ashish_onmobile GET Method work from browser to access api at port 80
# Aug 29th 2019, 03:17 ashish_onmobile 4200*
# Aug 29th 2019, 03:17 ashish_onmobile I am working on angular project which run over port 42000
# Aug 29th 2019, 03:17 kailas @challgren yes. I have a permissions.php file in the config directory. I felt like the changes I was making to it were working. let me poke at that a bit more
# Aug 29th 2019, 03:17 ashish_onmobile I tried this
# Aug 29th 2019, 03:17 ashish_onmobile ashish_onmobile [12:43 PM] public function beforeFilter(Event $event) { parent::beforeFilter($event); $this->response= $this->response->cors($this->request) ->allowOrigin([‘*’]) ->allowMethods([‘GET’, ‘POST’,‘PUT’,‘OPTIONS’]) ->allowHeaders([‘X-CSRF-Token’]) ->allowCredentials() ->exposeHeaders([‘Link’]) ->maxAge(300)
# Aug 29th 2019, 03:16 challgren @kailas that doesnt look right are you editing the permissions.php in your config dir?
# Aug 29th 2019, 03:15 challgren @ashish_onmobile best to ask your question a lot of people lurk and maybe to answer if they know the question
# Aug 29th 2019, 03:14 ashish_onmobile is there anyone who can help for CORS issue