Git Product home page Git Product logo

aoe_ipauth's Introduction

aoe_ipauth's People

Contributors

lorenzulrich avatar srotsch avatar stephanederer avatar tomasnorre avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aoe_ipauth's Issues

Wrong Path for typo3/cms package in composer.json

Installing the Extension on TYPO3 6.2 LTS results in the following error:

#1382276561: The package "aoe_ipauth" depends on "typo3/cms" which is not present in the system. (More information)

The reason is that the package name for typo3/cms is wrong and actually is: typo3/cms-cms (taken from typo3/sysext/cms/composer.json

IPv6 Adresse

I would like to specify an IPv6 address block in your extension. Unfortunately, the extension only accepts single IPv6 addresses and no block. I tried it with the notation XXX: XXX: XXX :: / XX

Could you please give me the correct notation?

Use HTTP_X_FORWARDED_FOR if present

Hi :)

thanks for this plugin, very handy, but it needs a new feature to be perfect! ;)

We use proxies to communicate with our site, so sometimes, REMOTE_ADDR is the Proxy-IP! The real IP is not there at this moment and authentication fails or is wrong.

In our case, we always send HTTP_X_FORWARDED_FOR if we use this proxy, so it would be GREAT if the tool would check that:

If HTTP_X_FORWARDED_FOR is present, use HTTP_X_FORWARDED_FOR instead of REMOTE_ADDR else use REMOTE_ADDR

I would write a patch, but I dont have any TYpo3 Test-environment to check that. I could write a patch but someone else need to test it then :/

Would be great if we could find a way to implement that :)

Regards,

Kein REDIRECT nach ip_authentification

Hi!

Ich will nach einer erfolgreichen IP-Identifizierung ein redirect auf eine Bestimmte Seite machen, wenn der User von einer bestimmten Range kommt. Das Ganze ist eine Intranet Lösung, daher sollen bestimmte Ranges gleich auf ihre regionalen Seiten kommen.
Also habe ich einen FE-User angelegt und die bestimmte IP-Range eingetragen. Das automatische Login erfolgt daraufhin problemlos. Aber halt immer auf die Seite, die nach dem Login angezeigt werden soll.
Dann habe ich im HauptTS folgendes eingebaut: (alles ab ###redirect##########.....)

Default PAGE object:

page = PAGE
page {

Redirect auf /profil/ nach Login

CONFIG Allgemeine Seiteneigenschaften setzen

config {
doctype = html5
linkVars = L
uniqueLinkVars = 1
sys_language_uid = 0
language = de
locale_all = de_DE
htmlTag_langKey = de
index_enable = 1
index_externals = 1

} # END config

Meta-Tags angeben

meta.author = Carsten Barg, Andreas Bihlmeier
meta.description = prettylogic.com

headerData.5 = CASE
headerData.5 {

key {
  data = levelfield:-1, backend_layout_next_level, slide
  override.data = TSFE:page|backend_layout
   }
1 = TEXT
1.value (
) 2 = TEXT 2.value ( ) 3 < .1 }

includeJS {
20 = https://code.jquery.com/jquery-1.10.1.min.js
30 = fileadmin/intranet2018/js/lightgallery.js
}
includeJSFooter {
#10 = https://code.jquery.com/jquery.js
20 = https://cdn.jsdelivr.net/picturefill/2.3.1/picturefill.min.js
30 = https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js
}

Die Designvorlage integrieren

10 = FLUIDTEMPLATE
10 {
file.cObject = CASE
file.cObject {
key {
data = levelfield:-1, backend_layout_next_level, slide
override.data = TSFE:page|backend_layout
}
1 = TEXT
1.value = fileadmin/intranet2018/templates/main_start.html

   2 = TEXT
   2.value = fileadmin/intranet2018/templates/content.html
   3 = TEXT
   3.value = fileadmin/intranet2018/templates/main_start.html
}


#file = fileadmin/intranet2018/templates/main_start.html
variables {
   content-fe = TEXT
   content-fe.value = 2
         
   content-fe {
     override = 1
     override.if.isFalse.data = TSFE:fe_user|user|uid

   }
 
 # [loginUser = *]
 #   content-fe.value = 1
 # [else]
 #   content-fe.value = 2
 # [end]
  logo = TEXT
  logo.value (
     <a href="index.php?id=2" title="AUSTIN | BFP"><img src="fileadmin/intranet2018/images/bdo.svg" alt="AUSTIN | BFP"/ height="25px" width="65px"></a>
  )
  #STARTSEITE
  #*********************************************************
  content-5 < styles.content.get 
  content-5.select.where = colPos = 5
  
  content-10 < styles.content.get 
  content-10.select.where = colPos = 10
  
  content-20 < styles.content.get 
  content-20.select.where = colPos = 20
  
  content-30 < styles.content.get 
  content-30.select.where = colPos = 30
  
  content-40 < styles.content.get 
  content-40.select.where = colPos = 40
  
  content-50 < styles.content.get 
  content-50.select.where = colPos = 50
  
  content-60 < styles.content.get 
  content-60.select.where = colPos = 60
  
  content-70 < styles.content.get 
  content-70.select.where = colPos = 70
  
  content-75 < styles.content.get 
  content-75.select.where = colPos = 75
  
  content-80 < styles.content.get 
  content-80.select.where = colPos = 80
  
  content-5 = TEXT
  content-5.data = TSFE:fe_user|user|uid
  
  content-85 < styles.content.get 
  content-85.select.where = colPos = 85
  
  content-90 < styles.content.get 
  content-90.select.where = colPos = 90
  
  content-95 < styles.content.get 
  content-95.select.where = colPos = 95
  
  content-100 < styles.content.get 
  content-100.select.where = colPos = 100
  
  content-105 < styles.content.get 
  content-105.select.where = colPos = 105
  
  #Anmeldung
  
  content-11 < styles.content.get 
  content-11.select.where = colPos = 11
  
  contMarquee < styles.content.get
  contMarquee = CONTENT
  contMarquee {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos=99
    renderObj.10 = TEXT
    renderObj.10.field = header
    renderObj.20 = TEXT
    renderObj.20.field = bodytext
    renderObj.stdWrap.wrap = <marquee class="change-log-ticker">|</marquee>
    #renderObj.stdWrap.innerWrap >
  }
  
  #UNTERSEITE
  content-0 < styles.content.get 
  content-0.select.where = colPos = 0
  
  #MENUS
  
  menuPrimary = HMENU
  menuPrimary {
    special = directory
    special.value = 2
    wrap = <ul class="csc-menu csc-menu-1">|</ul>
    1 = TMENU
    1 {
      target = {$PAGE_TARGET}
      expAll = 1
      NO = 1
      NO {
        stdWrap.htmlSpecialChars = 1
        wrapItemAndSub = <li>|</li>
        #ATagTitle.field = description // title
      }
      ACT < .NO
      ACT = 1
      ACT {
        ATagParams = class="active"
        ATagBeforeWrap = 1
      }
      noBlur = 1
    }
    2 < .1
    2 {
      wrap = <ul class="drop">|</ul>
    }  
  } #END menuPrimary
  menuSecond = HMENU
  menuSecond {
    entryLevel = 1
    wrap = <ul class="clearfix">|</ul>
    1 = TMENU
    1 {
      NO = 1
      NO {
        wrapItemAndSub = <li>|</li>
      }
      ACT = 1
      ACT {
        linkWrap = <li>|</li>
        ATagParams = class="active"
      }
    }
  }#END menuSecond
  
  #Menü mit den Titeln des gesamten Eintrages und den Ankern dazu  :)
  contentTitle = CONTENT
  contentTitle {
    table = tt_content
    select {
      selectFields = header
      orderBy = sorting
      pidInList = this
    } #END SELECT
    renderObj=TEXT
    renderObj {
      field=header
      wrap=|
      typolink.wrap = <h1>|</h1>
      typolink.parameter.field=pid
      typolink.parameter.dataWrap=|#{field:uid}
      #typolink.parameter = t3://page?field:sectionIndex_uid
    } #END renderObj
  } 
  
  
  
}  #END VARIABLES

} #End FLUIDTEMPLATE
} #END PAGE

redirect

#auch hier keine Reaktion
plugin.tx_felogin_pi1.showLogoutFormAfterLogin = 0
page.config >
page.config.additionalHeaders = Location: http://127.0.0.1/typoBDO/index.php?id=16
[loginUser = *] && [TSFE:fe_user|user|uid = 496]

[global]

#[globalVar = loginUser=496]
#[globalVar = TSFE:fe_user|user|uid=496] && [globalVar = TSFE:id=2]
#[globalVar = TSFE:id=2]

#page.meta.refresh = 0
#page.config >
#page.config.additionalHeaders = Location: http://127.0.0.1/typoBDO/index.php?id=16
#plugin.tx_felogin_pi1.showLogoutFormAfterLogin = 0
#plugin.tx_felogin_pi1.redirectMode = login
#plugin.tx_felogin_pi1.redirectPageLogin = 16
#[global]

#[globalVar = TSFE:id=2]
#page.config >
#page.config.additionalHeaders = Location: http://www.orf.at/

#[global]
####redirect end #############################################################

plugin.tx_indexedsearch {
settings.displayRules = 0
view {
templateRootPaths.10 = fileadmin/intranet2018/ext/indexed_search/templates
partialRootPaths.10 = fileadmin/intranet2018/ext/indexed_search/partials
}
}

[globalVar = TSFE:id=65]
[else]
page.10.variables {
search < tt_content.list.20.indexedsearch_pi2
search {
view.partialRootPaths.20 = fileadmin/intranet2018/ext/indexed_search
settings.targetPid = 65
}
}
page.10.variables {
searchmain < tt_content.list.20.indexedsearch_pi2
searchmain {
view.partialRootPaths.30 = fileadmin/intranet2018/ext/indexed_search/main
settings.targetPid = 65
}

}
[global]

plugin.tx_felogin_pi1.templateFile = fileadmin/intranet2018/templates/frontendlogin.html
plugin.tx_felogin_pi1._LOCAL_LANG {
de {
lbllogin = ""
lblwelcomemessage = ""
}
}

Deutscher Text

plugin.tx_fsmediagallery.LOCAL_LANG.de {
asset = Bild
assets = Bilder
no_albums_found = Kein Album gefunden!
no_album_found = Album nicht gefunden!
no_assets_found = Keine Bilder gefunden
back_to_album = zurück zum Album
back_to
%s = zurück zu %s
back_to_albums_list = zurück zur Albumliste
lightbox_current = Bild {current} von {total}
link_to_album = Zeige Album %s
}

plugin.tx_fsmediagallery {
view {
templateRootPaths {
100 = {$plugin.tx_fsmediagallery.view.templateRootPath}
200 = fileadmin/intranet2018/ext/tx_fsmediagallery/templates/
}
partialRootPaths {
100 = {$plugin.tx_fsmediagallery.view.partialRootPath}
200 = fileadmin/intranet2018/ext/tx_fsmediagallery/partials/
}
layoutRootPaths {
100 = {$plugin.tx_fsmediagallery.view.layoutRootPath}
200 = fileadmin/intranet2018/ext/tx_fsmediagallery/layouts/
}
}
}

plugin.tx_felogin_pi1.storagePid = 82

Ich habe das Ganze TS hineingegeben, damit man gleich sieht wie ich es eingebaut habe.
Also ich hab ein redirect probiert, dass ich auf der ID des Users aufgehängt habe, ich habe es auch mit additional.Headers probiert - kein Ergebnis. Ich hab auch schon versucht das Redirect im TS beim FE-User selbst einzubauen. Leider auch keine Reaktion.

Ich hoffe die Information reicht, wenn nicht bitte nachfragen :)

lg
Bonzo777

Fix for Issue #23 not in master branch

Hi,

I noticed that Issue #23 has been closed as resolved, but the fix (3ed5813) is still in branch issue/23 and not merged into master yet.
I applied it manually to my installation, but an extension-update would be nice.

Thanks!

Could not analyse class: "tx_reports_reports_status_Status"

After installing aoe_ipauth i get following error in the System/Reports "Status reports" module.

Could not analyse class: "tx_reports_reports_status_Status" maybe not loaded or no autoloader? Class tx_reports_reports_status_Status does not exist

After uninstalling the extension the error is gone,

Clearing caches didn't fix the issue.

Versions:
typo3 7.6.5
aoe_ipauth 1.0.1

Private IP address problem on cloud server

When I am using ddev, vagrant or some cloud server solutions - extension does not work correct.
https://github.com/AOEpeople/aoe_ipauth/blob/master/Classes/Typo3/Service/Authentication.php#L90 value in that case is for example:
10.10.100.9
192.168.10.1
which are private IPs - thus IP authentication does not work at all in that case.

For example in case of my cloud server correct public IP address is inside $_SERVER['HTTP_X_REAL_IP'] and not REMOTE_ADDR

Groups are only available after reloading the page

After authenticating a frontend user, the frontend groups of this user are not available until the next request (page reload).

Example: The user is logged in by a matching IP, but cannot see e.g. content elements on the page which are available only for certain groups, although the frontend user has that groups assigned. After a page reload he can see the content elements.

The merge request #59 fixes the problem in our environment.

IP assignment works only for Website User

Hi,

when assigning an IP to a Website Usergroup the visitor will not be a part of this group and therefore has no access to restricted areas.
It's only working when assigning the same IP to a Website User. The visitor is then authenticated as this Website User.
A workaround for the missing group association is to assign this "IP-based" Website User to the previously generated Website Usergroup.

My environment:

  • TYPO3 v7.6.22
  • aoe_ipauth v1.0.2

hide-at-login access ignored

Hi there!

It seems that the access-setting "hide at login" is somehow ignored when one is only auto-logged in -
but elements which are restricted to usergroups are shown.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.