I've been thinking to use multiple APIs in my ng-admin app. I also have an another authorization API running on the host which provide tokens for other API calls.
I would like to use all above APIs in my ng-admin app. Customizing the API Mapping of the ng-admin documentation describes below code to authorize APIs
myApp.config(['RestangularProvider', function(RestangularProvider) {
var login = 'admin',
password = '53cr3t',
token = window.btoa(login + ':' + password);
RestangularProvider.setDefaultHeaders({'Authorization': 'Basic ' + token}); }]);
However, where is the place to specify my authorization api url here? How to config auth API to provide tokens to all other APIs? On the other hand, what I have to do for refresh tokens?
Thanks