deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 十三郎 <mihaish...@163.com>
Subject Re:Re:about picketlink-deltaspike-authorization example.
Date Thu, 26 Sep 2013 03:49:04 GMT
hi,
thanks very much!!!!
in picketlink-deltaspike-authorization example,user's role added by the IDMInitializer class.
i want to know how to set user's role when executing action="#{identity.login}"???





At 2013-09-25 16:15:56,"Esteve Avilés" <eavilesa@gmail.com> wrote:
>Hi,
>
>You can check picketlink deltaspike integration to see how to build an
>@IsUserLoggedIn annotation:
>https://github.com/picketlink/picketlink-quickstarts/tree/master/picketlink-deltaspike-authorization
>
>Regards,
>Esteve
>
>
>On Wed, Sep 25, 2013 at 9:49 AM, Gerhard Petracek <
>gerhard.petracek@gmail.com> wrote:
>
>> hi,
>>
>> you have to use your own user-class and qualifier.
>>
>> regards,
>> gerhard
>>
>>
>>
>> 2013/9/25 十三郎 <mihaisheng@163.com>
>>
>> >  hi everyone:
>> >
>> > i want to use deltaspike-security module in a project.
>> >
>> > im already add deltaspike-security dependency:
>> > ----------------------------
>> >         <dependency>
>> >             <groupId>org.apache.deltaspike.modules</groupId>
>> >             <artifactId>deltaspike-security-module-api</artifactId>
>> >             <version>${deltaspike.version}</version>
>> >             <scope>compile</scope>
>> >         </dependency>
>> >         <dependency>
>> >             <groupId>org.apache.deltaspike.modules</groupId>
>> >             <artifactId>deltaspike-security-module-impl</artifactId>
>> >             <version>${deltaspike.version}</version>
>> >             <scope>runtime</scope>
>> >         </dependency>
>> > ----------------------------
>> > and i follow the offical documents to create  the Authorizer:
>> > ----------------------------
>> >
>> > @ApplicationScopedpublicclassCustomAuthorizer{@Secures
>> @CustomSecurityBindingpublicbooleandoSecuredCheck(InvocationContextinvocationContext,BeanManagermanager,@LoggedInUseruser)throwsException{returnuser.isLoggedIn();//
>> > perform security check}}
>> >
>> > ----------------------------
>> > i find there is no [User] class and [LoggedIn] class.
>> >
>> >
>> >
>> >
>>
>
>
>
>-- 
>Esteve Avilés
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message