You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by jleleu <le...@gmail.com> on 2015/04/30 10:51:02 UTC

Re: I want to send "permissionAttributeNames,roleAttributeNames" properties with buji-pac4j to my proxied app but I can't

Hi,

Better ask your question on the pac4j mailing list directly:
https://groups.google.com/forum/?fromgroups#!forum/pac4j-users.

In the buji-pac4j extension, there is no default roles and permissions
granted by the realm. The mechanism is a bit more generic
(https://github.com/bujiio/buji-pac4j/blob/master/core/src/main/java/io/buji/pac4j/ClientRealm.java#L147):
the roles and permissions are found in the user profile and populated for
Shiro.

So to grant default roles / permissions, you just need to define the
appropriate authorization generator
(https://github.com/pac4j/pac4j/blob/master/pac4j-core/src/main/java/org/pac4j/core/authorization/AuthorizationGenerator.java)
to grant default roles and permissions for your user profile and set this
authorization generator in your client.

It makes me think that this authorization generator should be available in
pac4j.

Any contribution will be welcome.

Thanks.
Best regards,
Jérôme




--
View this message in context: http://shiro-user.582556.n2.nabble.com/I-want-to-send-permissionAttributeNames-roleAttributeNames-properties-with-buji-pac4j-to-my-proxied-t-tp7580473p7580530.html
Sent from the Shiro User mailing list archive at Nabble.com.

Re: I want to send "permissionAttributeNames,roleAttributeNames" properties with buji-pac4j to my proxied app but I can't

Posted by jleleu <le...@gmail.com>.
Hi,

Just a follow-up on this.
The class you were looking for will be available in pac4j v1.8:
https://github.com/pac4j/pac4j/pull/159.
Best regards,
Jérôme




--
View this message in context: http://shiro-user.582556.n2.nabble.com/I-want-to-send-permissionAttributeNames-roleAttributeNames-properties-with-buji-pac4j-to-my-proxied-t-tp7580473p7580539.html
Sent from the Shiro User mailing list archive at Nabble.com.