Added rest service for authorization