williamroyal
New Member
I'd like to write an Authentication-Adapter with ZF2 Framework. Let's assume my website is accessible under my.site/ and the authentication shall be handled by the external site external.site/.The login procedure shall be as follows:
- If session data is stored at my.site/, everything is fine, stay on the site.
- If no session data is stored at my.site/, the user shall be redirected to external.site/authenticate?return_to=my.site/.
- If the user is logged in on this external site, he will be immediately redirected to my.site/?user=john&name=John&verify=cryptic-string.
- If the user is not logged in on this external site, he will see the login form and has to provide his credentials there. After successfully logging in to the external site, he will be redirected to my.site/?user=john&name=John&verify=cryptic-string.
- Where to put the authentication controller?
- What configuration files do I need?
- Can I use BjyAuthorize?