Module Rmobio::Auth
In: auth.rb

Methods

Public Instance methods

authorize filter

This filter will get the domain name from the request uri and application name from the environment setting.

   Then construct the application domain pair, like: "cricket-wap-airtel".
   The filter then check the session attribute of "shared_session_auth", and compare with the application domain pair.
   If the session attribute doesn't match the application domain pair, it will call the getUserAccessAttribute from
   gateway. and store into the session. If the new accessAttribute match the app-domain pair, filter the chain.
   If no, redirect to auth application.

get_user_attributes

To get Access Attribuest

Sample device url:

 http://marge.mobiolabs.com/gateway/public/authorizationServices/getAccessAttributes?auth_identity=910000000000&domain=airtel

Sample returned client info:

<?xml version="1.0" encoding="UTF-8"?>

   <DomainAccessAttributes xmlns="http://mobio.net/ws/platform/schema/UserAccessAttributeService">
     <authorizationId>910000000000</authorizationId>
     <domain>airtel</domain>
     <attribute>ROLE_USER</attribute>
      <attribute>Second Attribute</attribute>
   </DomainAccessAttributes>

[Validate]