Evgeni,

The IPAuthentication.getSpecialGroups() class adds the special groups 
based on your settings in authentication-ip.cfg

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/authenticate/IPAuthentication.java#L168

That class is called by the AuthenticationManager.getSpecialGroups() 
(which calls the getSpecialGroups() method of all authentication plugins 
configured in authentication.cfg):

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/authenticate/AuthenticationManager.java#L288

- Tim

On 5/8/2015 3:18 PM, Evgeni Dimitrov wrote:
> Thank you Peter,
>
> - I created groups,
> - I edited [dspace]/config/modules/authentication.cfg
> - I edited [dspace]/config/modules/authentication-ip.cfg
>
> What next - which class and which method populates the SpecialGroups in
> the Context?
>
> Best regards
> Evgeni
>
> On Fri, May 8, 2015 at 10:57 PM, Peter Dietz <pe...@longsight.com
> <mailto:pe...@longsight.com>> wrote:
>
>     First you have to configure IP addresses to mean anything:
>     
> https://wiki.duraspace.org/display/DSDOC4x/Authentication+Plugins#AuthenticationPlugins-IPAuthentication
>
>     ________________
>     Peter Dietz
>     Longsight
>     www.longsight.com <http://www.longsight.com>
>     pe...@longsight.com <mailto:pe...@longsight.com>
>     p: 740-599-5005 x809 <tel:740-599-5005%20x809>
>
>     On Fri, May 8, 2015 at 3:25 PM, Evgeni Dimitrov
>     <dimitrove....@gmail.com <mailto:dimitrove....@gmail.com>> wrote:
>
>         In DSpace 5.1.
>         I start with the ID of an Item, the ID of an ePerson and the IP
>         of the request.
>         I need to know can the ePerson read the item (from this IP).
>
>         - I create a Context
>         - I create the ePerson
>         - I set the ePerson in the context
>         - I create the Item
>         - I check
>
>         AuthorizeManager.authorizeAction(
>              context,
>              item,
>              org.dspace.core.Constants.READ);
>
>         - I would like to know how can I use the IP address. My guess is
>         that the SpecialGroups of the context should be populated but I
>         don't know how. Could you help?
>
>         Best regards
>         Evgeni
>
>
>         
> ------------------------------------------------------------------------------
>         One dashboard for servers and applications across
>         Physical-Virtual-Cloud
>         Widest out-of-the-box monitoring support with 50+ applications
>         Performance metrics, stats and reports that give you Actionable
>         Insights
>         Deep dive visibility with transaction tracing using APM Insight.
>         http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>         _______________________________________________
>         DSpace-tech mailing list
>         DSpace-tech@lists.sourceforge.net
>         <mailto:DSpace-tech@lists.sourceforge.net>
>         https://lists.sourceforge.net/lists/listinfo/dspace-tech
>         List Etiquette:
>         https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
>
>
>
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
>
>
>
> _______________________________________________
> DSpace-tech mailing list
> DSpace-tech@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> List Etiquette: 
> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette

Reply via email to